You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an idea for a new feature for jQuery Terminal
This is the code for the highlight function from PrismJS:
highlight: function(text,grammar,language){varenv={code: text,grammar: grammar,language: language};_.hooks.run('before-tokenize',env);if(!env.grammar){thrownewError('The language "'+env.language+'" has no grammar.');}env.tokens=_.tokenize(env.code,env.grammar);_.hooks.run('after-tokenize',env);returnToken.stringify(_.util.encode(env.tokens),env.language);},
There is a need to test with different grammars if those hooks make a difference. I was told they do.
The text was updated successfully, but these errors were encountered:
I have an idea for a new feature for jQuery Terminal
This is the code for the highlight function from PrismJS:
There is a need to test with different grammars if those hooks make a difference. I was told they do.
The text was updated successfully, but these errors were encountered: