Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hiding line numbers for certain code blocks #1

Closed
ankitpokhrel opened this issue Nov 4, 2013 · 3 comments
Closed

Hiding line numbers for certain code blocks #1

ankitpokhrel opened this issue Nov 4, 2013 · 3 comments

Comments

@ankitpokhrel
Copy link

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
Copy link
Member

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
Copy link
Author

Hi,

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

Thanks,
Ankit

@AndiDittrich
Copy link
Member

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants