Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
  1.  # 1

    SyntaxHighlighter is a Formatter that displays code attractively with syntax highlighting in pre-formatted (monospace) blocks. Each code block is accompanied by "view plain", "copy to clipboard", and "print" links.

    Surrounding code like so:

    [code lang="php"]
    <?php
    function helloWorld($world) {
    print $world;
    }
    ?>
    [/code]

    Will post a syntax-highlighted PHP block. Other options are as follows:

    Language"lang" Value
    C++cpp, c, c++
    C#c#, c-sharp, csharp
    CSScss
    Delphidelphi, pascal
    Javajava
    JavaScriptjs, jscript, javascript
    PHPphp
    Pythonpy, python
    Rubyrb, ruby, rails, ror
    Sqlsql
    VBvb, vb.net
    XML/HTMLxml, html, xhtml, xslt

    View the readme.html page (included) for detailed information.

  2.  # 2
    Uploaded version 1.0 of SyntaxHighlighter.
  3.  # 3
    Uploaded version 1.0 of SyntaxHighlighter.
  4.  # 4
    Uploaded version 1.0 of SyntaxHighlighter.
  5.  # 5
    Uploaded version 1.0 of SyntaxHighlighter.
  6.  # 6
    The flurry of meaningless updates were to make sure that the remote update checker via Vanilla's admin "Updates and Reminders" was working, which it now is.
  7.  # 7
    Uploaded version 1.1 of SyntaxHighlighter.
  8.  # 8
    Uploaded version 1.1.1 of SyntaxHighlighter.
    • CommentAuthorjoelpittet
    • CommentTimeDec 18th 2008 edited
     # 9
    c++, c# doesn't seem to work. but csharp does for the lang attr.

    default.php line 63 replace with:
    $hlString = preg_replace("/\[code( lang=\"([A-Za-z\+#]+)\")?\]/",

    from
    $hlString = preg_replace("/\[code( lang=\"([A-Za-z]+)\")?\]/",

    I added + and # to the mix
  9.  # 10
    Uploaded version 1.1.2 of SyntaxHighlighter.
  10.  # 11
    Bug fixed!
Add your comments
    Username Password
  • Format comments as