i’m using vue with code-mirror and changing the languange dinamicalley according to the file extention
i have this code on mounted:
let mime = CodeMirror.findModeByExtension(this.code.codeLanguage).mime
it’s working well for me, but i saw on the docs you also need:
- do i really need the autoLoadMode? because it’s working fine for me atm.
- the autoLoadMode function work for me on every languange except sql, if i put sql in it’s writing "no such directory …/mode/sql/x-sql.js/sql/x-sql/.js for some weird reason, is there a way to solve it?