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

  1. Hannes Vorholz
    Posted 1 year 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.



  2. Andi Dittrich
    Plugin Author

    Posted 1 year 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
    Plugin Author

    Posted 1 year ago #

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

    Example (Shortcode):

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

    Example (HTML)

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

    best reagrds, Andi

  4. cdonts
    Posted 1 year ago #

    Very useful! Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic