Tapatalk

Having more identifiers for comment colours

Having more identifiers for comment colours

3
NewbieNewbie
3

    Aug 04, 2005#1

    Hi folks!

    I wonder if anyone knows it is possible to create more identifiers for comment colours.

    For example: I currently have identifiers for "/*", "*/" and "#if(0)", "#endif".
    Is it possible to add more, such as "#if(ABC)", "#endif /*ABC*/

    Thanks in advance.

    6,685587
    Grand MasterGrand Master
    6,685587

      May 27, 2006#2

      No. More than 2 block comments cannot be defined. Maybe the code folding feature or the hide selected text feature would be helpful.

      For example following macro code will hide all "#if(ABC)", "#endif /*ABC*/" blocks. Enable the macro property Continue if a Find with Replace not found for this macro.

      InsertMode
      ColumnModeOff
      HexOff
      ToggleBookmark
      Top
      Loop
      Find "#if(ABC)"
      IfFound
      Key HOME
      StartSelect
      Find Select "#endif /*ABC*/"
      IfSel
      HideOrShowLines
      EndSelect
      Key DOWN ARROW
      Else
      EndSelect
      ExitLoop
      EndIf
      Else
      ExitLoop
      EndIf
      EndLoop
      GotoBookMark
      ToggleBookmark

      If you use code folding, you have to specify the /Open Fold Strings = and /Close Fold Strings = in your wordfile for your language.
      Best regards from an UC/UE/UES for Windows user from Austria