Custom Comment

Topics: User Forum
May 16, 2013 at 10:54 PM
I'm trying to create a syntax configuration where the line comment symbol is ! i can't get this to work, no matter what lexer i choose.
May 17, 2013 at 7:12 AM
You can't change the line comment symbol of most lexers. Please read previous discussions - there was one not that long ago that regards this exact issue. It is here. In short, the XML attribute LineCommentPrefix doesn't affect how the lexer functions; it only affects the methods in ScintillaNET that work with commenting, not the way Scintilla itself handles highlighting.