|
@@ -5,10 +5,10 @@ self.MonacoEnvironment = {
|
|
|
if (label === 'json') {
|
|
|
return './json.worker.js';
|
|
|
}
|
|
|
- if (label === 'css') {
|
|
|
+ if (label === 'css' || label === 'scss' || label === 'less') {
|
|
|
return './css.worker.js';
|
|
|
}
|
|
|
- if (label === 'html') {
|
|
|
+ if (label === 'html' || label === 'handlebars' || label === 'razor') {
|
|
|
return './html.worker.js';
|
|
|
}
|
|
|
if (label === 'typescript' || label === 'javascript') {
|
|
@@ -20,5 +20,6 @@ self.MonacoEnvironment = {
|
|
|
|
|
|
monaco.editor.create(document.getElementById('container'), {
|
|
|
value: ['function x() {', '\tconsole.log("Hello world!");', '}'].join('\n'),
|
|
|
- language: 'javascript'
|
|
|
+ // language: 'javascript'
|
|
|
+ language: 'scss'
|
|
|
});
|