Sha256: e44ccc4e3e8e5874ff647117abfa03efc988884d47e6b2a0f1f8d1a8825887b5

Contents?: true

Size: 327 Bytes

Versions: 6

Compression:

Stored size: 327 Bytes

Contents

(function(){

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

Prism.hooks.add('before-highlight', function(env) {
	var tokens = env.grammar;

	tokens.tab = /\t/g;
	tokens.crlf = /\r\n/g;
	tokens.lf = /\n/g;
	tokens.cr = /\r/g;
	tokens.space = / /g;
});
})();

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
prism-rails-1.6.0.3 vendor/assets/javascripts/prism-plugin/prism-show-invisibles.js
prism-rails-1.6.0.2 vendor/assets/javascripts/prism-plugin/prism-show-invisibles.js
prism-rails-1.6.0.1 vendor/assets/javascripts/prism-plugin/prism-show-invisibles.js
prism-rails-1.5.1.2 vendor/assets/javascripts/prism-show-invisibles.js
prism-rails-1.5.1 vendor/assets/javascripts/prism-show-invisibles.js
prism-rails-1.5.0 vendor/assets/javascripts/prism-show-invisibles.js