Quantcast
Channel: ScintillaNET Forum Rss Feed
Viewing all articles
Browse latest Browse all 296

New Post: default Python lexer not supporting line comment coloring?

$
0
0
Just checking to see if I'm overlooking something silly here... I've selected Python as my lexer and I'd assume out of the box # would be treated as a line comment and it'd show up as green - other syntax highlighting is working ok, brace matching etc...

I tried setting the line comment prefix to "#" manually and even added

scintillaCode.Styles[scintillaCode.Lexing.StyleNameMap["LINECOMMENT"]].ForeColor = System.Drawing.Color.Green;

just to be sure my assumption about color settings wasn't wrong - however nothing I do causes lines that start with # to be colored green.

Am I overlooking something simple?

(using latest bins downloaded this afternoon, BTW)

Viewing all articles
Browse latest Browse all 296

Trending Articles