Closed tigrazone closed 1 year ago
Hi.
You can define delimiter " for strings and every text between " and " will be highlighted.
You can define strings with "<" and ">" as delimiters too. However it will make every "<" char start a string and will fail in cases like "if (x<y) { }".
The easy way is to highlight all the line #include "stdio.h" or #include
<Attribute Name="Directive" ForeCol="#FE2EF7"> </Attribute>
<Token Start="#" End="" Attribute='DIRECTIVE'> </Token>
About #if #else #endif, you can define the folding using two sections inside a block:
<Block Start="#if" End="#endif" Parent="Main">
<Section Start="#if" FirstSec="True"> </Section>
<Section Start="#else"> </Section>
</Block>
Hello. How to do c highlighter which:
Thank you at all