Syntax highlighting

Issue #7 new
created an issue

When using StackTack on blogs, it would be nice if we could have syntax highlighter support. I currently use PrettyPrint (like stackoverflow) which requires me to either add a class to the code elements or I will need to call a jquery function to add the 'prettyprint' class to the code elements.

If you could expose a delegate "OnSuccess" method as a global option then I could use jquery to add the 'prettyprint' class to the code->pre elements in order to get the syntax highlighting like on SO.

This blog post talks about SO, prettyprint and how to add the class at runtime:

Comments (2)

  1. Anonymous

    I may just build the prettyprint directly into the app and have an option to turn it on or not.

    However, a success or loaded event of some sort wouldn't hurt either.

  2. Log in to comment