mirror of
https://github.com/discourse/discourse.git
synced 2025-06-24 03:01:33 +08:00
FEATURE: Allow selection of highlight js languages
PERF: stop loading highlight js on load To get latest highlight js run bin/rake highlightjs:update
This commit is contained in:
1
lib/highlight_js/assets/lang/erb.js
Normal file
1
lib/highlight_js/assets/lang/erb.js
Normal file
@ -0,0 +1 @@
|
||||
hljs.registerLanguage("erb",function(e){return{sL:"xml",subLanguageMode:"continuous",c:[e.C("<%#","%>"),{b:"<%[%=-]?",e:"[%-]?%>",sL:"ruby",eB:!0,eE:!0}]}});
|
Reference in New Issue
Block a user