Sha256: 4e068874ad96a696fb9865c7692ce54692968fdfc49856f6939a954adea11ff7

Contents?: true

Size: 270 Bytes

Versions: 7

Compression:

Stored size: 270 Bytes

Contents

(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);
});

})();

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
prism-rails-1.19.0 vendor/assets/javascripts/prism-plugin/prism-highlight-keywords.js
prism-rails-1.6.0.3 vendor/assets/javascripts/prism-plugin/prism-highlight-keywords.js
prism-rails-1.6.0.2 vendor/assets/javascripts/prism-plugin/prism-highlight-keywords.js
prism-rails-1.6.0.1 vendor/assets/javascripts/prism-plugin/prism-highlight-keywords.js
prism-rails-1.5.1.2 vendor/assets/javascripts/prism-highlight-keywords.js
prism-rails-1.5.1 vendor/assets/javascripts/prism-highlight-keywords.js
prism-rails-1.5.0 vendor/assets/javascripts/prism-highlight-keywords.js