peter1234
Aug 24 2008, 03:49 AM
After trying endless time to use the mt-colorer (http://klim.doslash.org/projects/mtcolorer/index.shtml) plugin on my mt 4.2 blog, i assume that this didn't run under mt 4.x?
could someone please recommened me a plugin to highlight perl code in my postings
OtherNiceMan
Aug 24 2008, 06:38 AM
I did use Google's SyntaxHighlighter
http://code.google.com/p/syntaxhighlighter/ with this perl brush
http://nevstokes.com/includes/syntax/scripts/shBrushPerl.jsI then used private tags and EntryIfTagged to include the javascript only on specific pages (@code added the core files then @perl for perl highlighting, @html for html etc). The problem I had was in the entry, you have to switch to html and add attributes to the pre tags to work. For the moment (until I have time to write a plugin) I have switch back to just using pre tags and no highlighting.