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
Highlight specified line(s) in source code #1133
Comments
The highlighting is handled by https://highlightjs.org so I think this request should be open on their repo. |
Good idea. Reported as #740. |
Did anyone get this working? highlightjs/highlight.js#740 is closed with the advice that html is not escaped inside a But when I try this as described on http://jsfiddle.net/tovic/059x3ygs/2/
It briefly flashes in yellow, but then I get the |
Based on https://github.com/hakimel/reveal.js/blob/master/plugin/highlight/highlight.js#L14 it looks like you should be able to add a
|
I opened #1352 to add I also noticed this plugin listed on the wiki that might be useful (I haven't tried it): |
Closing this for now as #1352 has already been merged, and there’s already a plugin for that (maintained by me!). (The repo for my plugin is now at https://github.com/demoneaux/reveal-code-focus/.) |
In some cases it is very useful to be able to highlight specified line(s) in source code by giving them other background (e.g. yellow).
The mentioned effect achieved with remark.js: http://jsfiddle.net/szpak/059x3ygs/1/
The text was updated successfully, but these errors were encountered: