Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Vanilla Syntaxizer

This discussion is related to the Vanilla Syntaxizer addon.
edited February 2010 in Vanilla 2.0 - 2.8
Vanilla Syntaxizer

Comments

  • Hello, I just fixed the code of this plugin to work with the latest vanilla2 RC3 code. Here is the patch
    --- default.php.orig 2010-07-14 10:36:45.000000000 +0200 +++ default.php 2010-07-14 10:36:56.000000000 +0200 @@ -22,7 +22,7 @@ { echo '<script type="text/javascript"> function updateSyntaxHighlight(){ - $("#Discussion .Comment .Body code").each(function(){ + $(".Message code").each(function(){ var codeClass = "sh_"+$(this).attr(\'class\'); var codeText = $(this).html(); codeText = codeText.replace(/<br \/>/g, "\n");
  • Sorry, the code tag didn't work, and I can edit my message...
  • Here is the readable patch: http://pastebin.com/HbhzD9B9
  • Another patch to fix the "
    " and "\n" stuff: http://pastebin.com/YSu3PGNH
Sign In or Register to comment.