We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

multiline lexem not working


I am developing an editor for our own language. I managed to match all simple lexems like keywords or simple operators.
But I cant find the way to match multilines lexems.
I have 2 kinds of multiline patterns :

 - comments that match the classic /* .... */ pattern or single line with 2 leading dash.
 currently I tried, where Comment format is green bold 10pt Verdana :

<lexem BeginBlock="/*"              
             ContinueBlock = ".+" IsContinueRegex = "true"
             Type="Comment" />

But it does not even display the /* and */ with the correct format.
the same happens wih on line comment not matching

       <lexem BeginBlock="--"  Type="Commentaire"/>

And finally for multiline strings (with single quote delimitor) not working with (except for first line)

<lexem BeginBlock="'" EndBlock="'" Type="String" IsComplex="true" 
   ContinueBlock="(.|\n)+" IsContinueRegex="true" OnlyLocalSublexems="true"
       IndentationGuideline="true" IsMultiline="true"/>  

You will find my complete configuration XML in attachment

thanks for your help,


Attachment: config_b6b6eb65.zip

6 Replies

OD Olivier Duhart October 16, 2014 11:54 AM UTC

I forgot to mention my syncfusion version is


ST Saravanan T Syncfusion Team October 20, 2014 03:07 PM UTC

Hi Olivier,


Thank you for using Syncfusion products,


We would like to let you know that your requirement can be achieved by using below code snippet.


Code Snippet [C#]:


<lexem BeginBlock="/*" EndBlock="*/" Type="Comment" OnlyLocalSublexems="true" IsComplex="true"

    IsCollapsable="true" CollapseName="/*...*/" AllowTriggers="false">


    <lexem BeginBlock="/*" Type="Comment" />

    <lexem BeginBlock="\n" IsBeginRegex="true" />




Please let us know if you need any further assistance,



Saravanan T

OD Olivier Duhart October 21, 2014 09:42 AM UTC


I tried your solution but it did not work :(
I just copy-paste your snippet, replacing my comment configuration. So my config.xml is the same that I joined except the comment part.

Could you check this and maybe send me a more complete sample (XML + C# ) ?



OD Olivier Duhart October 22, 2014 11:30 AM UTC

I managed to colored a multiline string with

but  I never succeeded adpting this pattern foor comment coloring.

In fact even simple lexems like those below do not work :

     <lexem Type="Comment" BeginBlock="--" IsBeginRegex="false" />
      <lexem Type="Comment" BeginBlock="/*" IsBeginRegex="false" />

Is there something special with those beginBlock that prevent them to work ? I tried playing  with IsBeginRegex = true/ false but ntohing changed


OD Olivier Duhart October 23, 2014 09:02 AM UTC


I was missing the <splits></splits> part for activating comment highlighting

thanks for your help


ST Saravanan T Syncfusion Team October 24, 2014 02:12 PM UTC

Hi Oliver,


Thank you for your update,


We are glad to hear that the reported problem has been resolved.


Please let us know if you need any further assistance,



Saravanan T

Live Chat Icon For mobile
Up arrow icon