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
In the process of updating to 1.0, I realized that I would need to tell CodeFlask how to use all the languages that Prism has, doing something similar to the following:
// load prism.js after codeflask so it doesn't get overwrittenfor(varlangofObject.entries(Prism.languages)){flask.addLanguage(lang[0],lang[1]);}
To do this, I need to have already created an editor, but as someone who frequently will have multiple editors on the page (dynamically added, as well), it doesn't really make sense for this to be a function on an editor instance. My first instinct was to call it as CodeFlask.addLanguage().
Is there a reason that this is an instance function?
The text was updated successfully, but these errors were encountered:
In the process of updating to 1.0, I realized that I would need to tell CodeFlask how to use all the languages that Prism has, doing something similar to the following:
To do this, I need to have already created an editor, but as someone who frequently will have multiple editors on the page (dynamically added, as well), it doesn't really make sense for this to be a function on an editor instance. My first instinct was to call it as
CodeFlask.addLanguage()
.Is there a reason that this is an instance function?
The text was updated successfully, but these errors were encountered: