Create custom [sourcecode] shortcode, the right way?

You’re asking about X, but I’ll answer with Y. IMHO, there are too many exceptions to handle to grant another solution. SyntaxHighlighter Evolved has the following Pro Tip (strong, uppercase, in the original): TIP: Don’t use the Visual editor if you don’t want your code mangled. TinyMCE will “clean up” your HTML. Not only that, … Read more

Syntax highlighting for post/page editor [closed]

I am using SyntaxHighlighter Evolved by Viper007Bond, works great! http://wordpress.org/extend/plugins/syntaxhighlighter/ After I gave this answer yesterday, I read a recent post by Konstantin Kovshenin over at theme.fm, which gives you all the different possibilities on how to add syntax into your Posts/Pages: http://theme.fm/2011/07/working-with-code-in-wordpress-posts-985/