Line highlighting in code blocks
aallam opened this issue · 3 comments
Hello,
I wonder if it is possible to add lines highlighting ?
Thanks
@aallam Hey! What do you mean? The gists automatically have highlighting and line numbers, I believe.
@parkr
Example: https://gist.github.com/Aallam/f947bc81c6be0a2045d0a0e61441afe5#file-postrm-L8-L14
(see the lines highlighting here from L8 to L14)
Ohhh, you mean highlighting of the lines, not syntax highlighting.
This is certainly possible for native code blocks. @imathis built this for octopress as the mark parameter to code blocks. That said, it's not a feature that 80% of our users will find useful so I am going to close this as a feature request. If you want to submit a PR to add it to our highlight tag, I'll gladly take a look – just not a necessity for us.
I don't think any embedded gists offer this, right? See if you can come up with a <script> tag which does this natively then we can take a look.
Thanks!