• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

Forum no more shows syntax highlighting for code blocks

Community Expert ,
Feb 01, 2021 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

407

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 05, 2021 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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 07, 2021 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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 08, 2021 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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Votes

Translate

Translate

Report

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