kazzkiq / CodeFlask

A micro code-editor for awesome web pages.
https://kazzkiq.github.io/CodeFlask/
MIT License
1.07k stars 120 forks source link

How do I change the language of the editor? #129

Closed Explosion-Scratch closed 3 years ago

Explosion-Scratch commented 3 years ago

It seems that once I set it I can't remove codeflask and reset the language. In my case I need a dropdown of languages which alters the syntax highlighting behavior.

clsource commented 3 years ago

Maybe with the function updateLanguage

https://github.com/kazzkiq/CodeFlask/blob/master/src/codeflask.js#L386

Explosion-Scratch commented 3 years ago

Thanks! 😃