-
Notifications
You must be signed in to change notification settings - Fork 859
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
Automatic syntax highlighter #206
Comments
You can easily add this yourself to your slide deck. For example, using highlight.js: Add this in the <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/default.min.css"> Add this before <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script> And there you go. I’m not sure if syntax highlighting should be part of Shower by default. |
@mathiasbynens thanks for this how-to guide. Helped me a lot! |
@pepelsbey I don't think a new plugin is really necessary. After all, an existing syntax highlighter (as linked to by @mathiasbynens) does the job perfectly. I don't see any necessity to integrate this any closer with Shower. Nor could I imagine how that would look like, i.e., how would such a plugin be any different than highlight.js? In fact, highlight.js is already the plugin we're looking for—no need to make a new one. |
@RubenVerborgh, plugin could just integrate such highligher in a better way:
|
@pepelsbey I realized sources highlighting via highlight.js on nodejs for our corporate theme. |
@lekzd, I’d go for a separate |
@pepelsbey, maybe to close? |
@nikolay-govorov I think this is a good issue to discuss possible plugin that would use Highlight.js or Prism.js. |
Implementing an automatic syntax highlighter for code might be nice :)
Such as Google's Prettify http://google-code-prettify.googlecode.com/svn/trunk/styles/index.html
The text was updated successfully, but these errors were encountered: