jellyfin-web/dashboard-ui/bower_components/prism/plugins/show-invisibles/prism-show-invisibles.js

20 lines
327 B
JavaScript
Raw Normal View History

2016-02-03 16:00:01 -07:00
(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;
});
})();