Author Topic: Multi-line Comment with Space  (Read 1947 times)

RightClick

  • Junior Community Member
  • Posts: 5
  • Hero Points: 0
Multi-line Comment with Space
« on: August 23, 2016, 02:57:57 PM »
Hi,

Is there a way to create a color coding multi-line comment that contains a space character?   This is for a User-Defined Language.

For example:

Code: [Select]
START COMMENT
   if ( a = 1 ) {
      print "hi";
   }
END COMMENT

Where START COMMENT through END COMMENT would be color coded with the CommentColor.

Tools > Options > Languages > User-Defined Languages > TEST > Color Coding > Comments > New Multi-line comment
Start Delimiter: START COMMENT
End Delimiter: END COMMENT

Thank you,

RightClick

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6826
  • Hero Points: 526
Re: Multi-line Comment with Space
« Reply #1 on: August 24, 2016, 01:19:03 AM »
There seems to be a limitation with multi-line comments where it may not be an identifier. In other words, you can't use "start" and "end" for a multi-line comment (space seems to work though -- "/ &" and "& /" works). The plan for v22 (not v21) is to enhance the color coding engine. We will see if we can make this enhancement while we're rewriting it to be more powerful.

RightClick

  • Junior Community Member
  • Posts: 5
  • Hero Points: 0
Re: Multi-line Comment with Space
« Reply #2 on: August 24, 2016, 01:48:25 PM »
Thank you for clarifying and considering this update for the next version.

-RightClick