Home Forums WordPress SyntaxHighlighter2 Extend plugin with SyntaxHighlighter option

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #3391


    The syntax highlighter allows to define options which influence the style of the wrapped pre tag. For example we can specify styles like :nogutter, :ruler etc. This is currently not supported by the plugin. It would be very nice to have an option attribute like:


    and this would be appended to the pre tag class attribute as defined under:


    so the above code would lead to:

    <pre class="brush: language; ruler: true; first-line: 10; highlight: [2, 4, 6]">...



    Just released SyntaxHighlighter2 2.0.4 with following changes:

    * Allow for options. Hide the toolbar, ruler, etc.

    * Select whether to apply the code highlighting to user comments in ‘Settings’ -> ‘SyntaxHighlighter2’

    Download the latest version from https://www.mohanjith.com/wordpress/syntaxhighlighter2.html

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.