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
  • curruption reloution
    8ee32023
    Luigi Serra authored
    2015-11-03 13:45:29 +0100  
    Browse Code ยป
prism-highlight-keywords.js 270 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
(function(){

if (
	typeof self !== 'undefined' && !self.Prism ||
	typeof global !== 'undefined' && !global.Prism
) {
	return;
}

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

})();