Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

Categories

In this Discussion

Who's Online 13

CurtisOdenericgillette422 +10 guests

Vanilla Syntaxizer

This discussion is related to the Vanilla Syntaxizer addon.
Vanilla Syntaxizer

Comments

  • Posts: 23
    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(/&lt;br \/&gt;/g, "\n");
  • Posts: 23
    Sorry, the code tag didn't work, and I can edit my message...
  • Posts: 23
    Here is the readable patch: http://pastebin.com/HbhzD9B9
  • Posts: 23
    Another patch to fix the "
    " and "\n" stuff: http://pastebin.com/YSu3PGNH
Sign In or Register to comment.