Hi Hema,
Thank you for your sample code! I have some follow-up questions:
(1) I have a two-word beginning of a block, with same first word ("proc") but with a variable second word (varies according to the name of the procedure). For example:
proc report data=mydata;
...lines of code;
run;
proc means data=mydata;
...lines of code;
run;
I want "proc report" and "proc means" (including the end of block "run;") to be in dark navy blue color. I tried the following regex pattern but it doesn't work:
"proc\s+\w{1}"
Could it be because the line where "proc" starting block begins contains other codes after the procedure name?
(2) Is there a workaround to the default behavior of automatically collapsing to last available token when there is no end block? (like not collapsing when the collapse/expand icon is clicked)
Thank you in advance!
Regards, Audi
>Hi Audi,
Sorry for the delay response.
It is possible to highlight the variants of SAS code.
Please refer the code below for Variation 1:
txt
IsCollapsable="true" CollapseName="(...)" AllowTriggers="false" Priority="0">
data
run;
Please refer the below sample for more detail.
http://websamples.syncfusion.com/samples/edit/F75411/main.htmPlease refer the tutorial link for more detail:
http://help.syncfusion.com/UG/User%20Interface/Windows%20Forms/Edit/Documents/411creatingacustomlanguageconfigurationfile.htmhttp://help.syncfusion.com/UG/User%20Interface/Windows%20Forms/Edit/Documents/45syntaxhighlightingandcodecoloring.htmVariantion 2:
Without run its automatically collapse to last available token. This is default behavior. if there is no EndBlock, the lexem will not be closed until it's find the end token.
Please let me know if any concern.
Regards,
Hema