WordPress.org

Ready to get started?Download WordPress

Forums

Enlighter - Customizable Syntax Highlighter
[resolved] [feature request] initial start line number (4 posts)

  1. Hannes Vorholz
    Member
    Posted 5 months ago #

    is there a option allesraady implementet for an intitioal line number.
    In many case we just want to post line 364-380 out of 1200
    the html-ol-tag supports the start attribute, so an easy implementation may be possible.
    support to change these starting line numbers in Codegroups members would also be nice.

    Thanks for this SUPER PLUGIN.

    Regards
    Hannes

    https://wordpress.org/plugins/enlighter/

  2. Andi Dittrich
    Member
    Plugin Author

    Posted 5 months ago #

    Dear Hannes,
    this would be a nice option but it's difficult to implement. it requires some "deep" modifications of the EnlighterJS Core which are projected in version 2.0
    i will try to add your feature request into the next major release (2.0)

    best reagrds, Andi

  3. Andi Dittrich
    Member
    Plugin Author

    Posted 2 months ago #

    Hi Hannes,
    your feature request is added in verison 2.0.

    Example (Shortcode):

    [js offset="23"]
    window.addEvent('mouseover', function(){});
    [/js]

    Example (HTML)

    <pre data-enlighter-language="js" data-enlighter-linenumbers="false" data-enlighter-lineoffset="5">
    ...
    </pre>

    best reagrds, Andi

  4. cdonts
    Member
    Posted 2 months ago #

    Very useful! Thanks!

Reply

You must log in to post.

About this Plugin

About this Topic