Logo white

WebCompDev / COMPONENTS

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • COMPONENTS
  • bower_components
  • prism
  • plugins
  • highlight-keywords
  • prism-highlight-keywords.js
  • COMPONENTS
    73bcce88
    luigser authored
    2015-09-23 13:15:08 +0200  
    Browse Code ยป
prism-highlight-keywords.js 185 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14
(function(){

if (!self.Prism) {
	return;
}

Prism.hooks.add('wrap', function(env) {
	if (env.type !== "keyword") {
		return;
	}
	env.classes.push('keyword-' + env.content);
});

})();