Forum no more shows syntax highlighting for code blocks

Advocate ,
Feb 01, 2021

Copy link to clipboard

Copied

I have checked now multiple times:

in https://community.adobe.com/t5/framemaker/multiline-text-for-button-labels/td-p/11798809 the code is set up with 'format' javascript.

When viewed the code is briefly displayed with colours, but finally all is black

TOPICS
Error

Views

244

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
K.Daube AUTHOR
Advocate ,
Feb 05, 2021

Copy link to clipboard

Copied

Just a trial

KLD_F.FindOverflowCell = function () { // ---------------------------------------------------------
/*            Find and identify overflowing table cell
Arguments     -
Returns       true if found, else false
Called by     main
Calling       ???
Used in       FMmngFindRepl
Reference     Rick Quatro, https://community.adobe.com/t5/framemaker/finding-cell-overflow-in-table-problem-with-script/m-p/7663483
              Klaus Göbel, https://community.adobe.com/t5/framemaker/view-current-cell-if-cell-overflows/m-p/11304625
History       2021-02-04 test with VSCode and ESDebugger
*/
var bFound = false, oDoc, oTable, oTtblRow, oTtblCell, oTLbeg, oTLend, oTR = undefined;  

  oDoc = app.ActiveDoc;  
  oTable = oDoc.FirstTblInDoc;  
out:
  while (oTable.ObjectValid ()) {  
    oTtblRow = oTable.FirstRowInTbl;  
    while (oTtblRow.ObjectValid ()) {  
      oTtblCell = oTtblRow.FirstCellInRow;  
      while (oTtblCell.ObjectValid ()) {  
        if (oTtblCell.Overflowed === 1) {  
          bFound = true; 
          break out;
        } 
        oTtblCell = oTtblCell.NextCellInRow;  
      }  
      oTtblRow = oTtblRow.NextRowInTbl;  
    }  
    oTable = oTable.NextTblInDoc;  
  } 
  if (bFound) {
    oTLbeg = new TextLoc(oTtblCell.FirstPgf,0);
    oTLend = new TextLoc(oTtblCell.FirstPgf,Constants.FV_OBJ_END_OFFSET);
    oTR = new TextRange(oTLbeg,oTLend);
    oDoc.ScrollToText(oTR);
  }
  return oTR;
} //--- end FindOverflowCell

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Feb 07, 2021

Copy link to clipboard

Copied

Hi Klaus,

 

You are correct. The code  behind the link is coloured, at least for a second, and your code here is just black.

 

Best regards

 

_Winfried

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
K.Daube AUTHOR
Advocate ,
Feb 08, 2021

Copy link to clipboard

Copied

Just now discoverd: while eidting or creating a post, the code also of the other posts is highlighted. As soon as I submit the edit/new post the highlights disappear.

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Enthusiast ,
Feb 08, 2021

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Enthusiast ,
Feb 08, 2021

Copy link to clipboard

Copied

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more