Skip to content

Loading…

Hiding line numbers for certain code blocks #1

Closed
ankitpokhrel opened this Issue · 3 comments

2 participants

@ankitpokhrel

Thank you for creating a cool plugin ;). I am using it. But is there any way to hide line numbers from certain code blocks? something like:

[php linenum='false'] Some Code [/php]

@AndiDittrich
Owner

Dear Ankit,
currently there is no option included which will change it.
but it's a good idea to implement it, because it could replace the "Inline" output-style - maybe available with the next release ;)

@ankitpokhrel

Hi,

Thank you for the prompt reply :+1: Looking forward for the next version. I am using it anyway ;).

Thanks,
Ankit

@AndiDittrich

Hi,
your Feature request is added to Enlighter v2.0. You can use shortcode as well as html style.

[js linenumbers="false"]
window.addEvent('domready', function(){});
[/js]
<pre data-enlighter-language="js" data-enlighter-linenumbers="false" data-enlighter-lineoffset="5">
...yourcode...
</pre>

best regards, Andi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.