i’ve been a big fan of the syntax highlighter aka syntaxhighligher evolved wordpress plugin for quite a while now. after updating to the syntaxhighlighter evolved version, my code sections started looking funny, like this:
[python] a = None b = 1
if all((a, b)): print ‘yes!’ [/python]
instead of like this:
[python]
a = None
b = 1
if all((a, b)):
print 'yes!'
[/python]
the problem seemed to be that syntaxhighlighter’s shortcodes confuddled markdown (or markdown confuddled syntaxhighlighter?). this morning i realized that the solution might be actually quite simple: instead of not indenting, indent the code by 4 space (as you usually do with markdown to tag code sections, sigh) and all might be well…
…and it was. sigh. quite easy.
