-
Notifications
You must be signed in to change notification settings - Fork 467
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
Javascript Highlighter seems to not work as expected #248
Comments
Javascript depends on the generic language patterns so you have to include that first. As for the style tags, This fork of your fiddle has it all working: https://jsfiddle.net/7kvcguez/ |
Thank you so much @ccampbell !!! |
One more question: Do I need to include generic.js above any other programming language except for HTML & CSS? Or is the best way to do it like you described here:
?? |
Certain languages depend on the generic patterns, but not all. Line 86 in 05892a8
The best bet is using gulp build to create a custom bundle and passing whatever languages you want in a list. You can also use the bundler from the rainbow website, but it is using a slightly out of date version of rainbow (long story) http://rainbowco.de |
Thanx for that damn quick reply Craig! You're the best!! |
Javscript won't work, weather with
data-language="javascript"
nor withclass="language-javascript"
see this fiddle here:
http://jsfiddle.net/neohiro79/1grwjb50/27/
or am I missing something important here?
Also the
style
tags get some additional tabspace - is there a way to change this?The text was updated successfully, but these errors were encountered: