Commit 6f968a38 authored by Jérome Perrin's avatar Jérome Perrin

monaco_editor: activate python mode for components

parent 1d48b2b8
...@@ -88,7 +88,16 @@ ...@@ -88,7 +88,16 @@
model_language = 'javascript'; model_language = 'javascript';
} else if (options.portal_type === 'Web Style') { } else if (options.portal_type === 'Web Style') {
model_language = 'css'; model_language = 'css';
} else if (options.portal_type === 'Python Script') { } else if (
options.portal_type === 'Python Script' ||
options.portal_type === 'Test Component' ||
options.portal_type === 'Extension Component' ||
options.portal_type === 'Document Component' ||
options.portal_type === 'Tool Component' ||
options.portal_type === 'Interface Component' ||
options.portal_type === 'Mixin Component' ||
options.portal_type === 'Module Component'
) {
model_language = 'python'; model_language = 'python';
} }
state_dict.model_language = model_language; state_dict.model_language = model_language;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment