As a blogger and programmer, of course you need to demo some of your codes. And of course, you need to use SyntaxHighlighter. See an example with Micolog on Google app engine.

	def __init__(self):
		Plugin.__init__(self,__file__)
		self.register_filter('footer',self.footer)
		self.register_urlzip('/syntaxhighlighter/(.*)','syntaxhighlighter.zip')
		self.theme=OptionSet.getValue("highsyntax_theme",default="Default")

It seems there is a bug in the Highlighter plugin of Micolog, but it seems to work pretty well for other people. Anyway, if it doesn't work for you, try the following patch to take a shot.

Edit metho footer in highsyntax.py: 

($('pre[class^=brush:]') -->$("pre[class^='brush:']")

 

Tags: SyntaxHighlighter Micolog

Posted in |

Leave a Reply