Hide line numbers by {code:xxx|hide-linenum|...}
Issue #8
resolved
Hi,
Is it possible to hide the line numbers generated when using overridden {code} macro using something like {code:linenum=false}?
Cheers,
Andrew.
Comments (13)
-
repo owner -
repo owner - changed status to open
-
repo owner - changed milestone to 1.6.0
- marked as minor
-
assigned issue to
- marked as enhancement
- edited description
-
reporter Hi Holger,
Thanks for the gutter=false info. I think linenum is more obvious and would agree that linenum=true as the default would be the most sensible as that retains the current default behaviour.
Cheers,
Andrew.
-
repo owner - attached linenum.png
-
repo owner Have a look at the attached image linenum.png. Would this be okay? Can you give me a real world example from your context?
Kind regards Holger
-
repo owner - changed milestone to 1.6.1
- edited description
-
repo owner - changed milestone to 1.6.2
-
repo owner - changed milestone to 1.7.0
-
repo owner -
repo owner Use e.g. {code:java|highlight=[5,6]|hide-linenum|title=HelloWorld.java}
-
repo owner - changed title to Hide line numbers by {code:xxx|hide-linenum|...}
-
repo owner - changed status to resolved
Released as part of version 1.7.0
- Log in to comment
The original command is gutter. http://alexgorbatchev.com/SyntaxHighlighter/manual/demo/gutter.html
So, it would be gutter=false, but I would prefer linenum=false with linenum=true as default.
What do you think?
Greetings Holger