Home Forums WordPress SyntaxHighlighter2 Extend plugin with SyntaxHighlighter option

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

    Hello

    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:

    Code:

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

    http://alexgorbatchev.com/wiki/SyntaxHighlighter:Configuration

    so the above code would lead to:

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

    daniel

    #4408

    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.