Open mattpass opened 9 years ago
Rather than load all language modes, load them as required. This addon loads them as needed and there is an autoLoadMode option also.
Perhaps consider loading the HTML, CSS and JS as a basis and others are then loaded as needed?
May be useful to load meta.js mode and use CodeMirror.findModeByFileName as mentioned in https://discuss.codemirror.net/t/api-for-language-detection/2565
Rather than load all language modes, load them as required. This addon loads them as needed and there is an autoLoadMode option also.
Perhaps consider loading the HTML, CSS and JS as a basis and others are then loaded as needed?