jellyfin-web/dashboard-ui/bower_components/prism/plugins/show-invisibles/prism-show-invisibles.js
2016-02-03 18:00:01 -05:00

20 lines
327 B
JavaScript

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