Lines of code in a block should not be interpreted (http://daringfireball.net/projects/markdown/syntax#precode)
"_bar" is colorized
"_bar" should not ne colorized
Tested with geany 0.20 (revision 5095)
This bug could be better specified. Basically, the matching of the underscore "_" character for emphasis or strong is too promiscuous. It finds underscores in URLs (or in the original report, variable names) and think they are markup. I would limit underscore matches to non-alphanumeric boundaries.
I've read up a little on syntax highlighting in geany, and it looks like this would be a scintella lexer issue, perhaps the bug should be moved upstream?
You're right it's a Scintilla issue and would need to be fixed in Scintilla's LexMarkdown.cxx file. If you happen to get motivated to fix it (and all the other issues in it :) or if you report it to Scintilla's bug tracker, it would be great if you could follow up here with a link for others to find.
I don't see the bug in Geany 1.22. Actually the Markdown lexer (now?) checks whether "_" is preceded by a whitespace character and only changes states if it is.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.