Commit affd0574 authored by Jérome Perrin's avatar Jérome Perrin

SourceCodeEditorZMI: support less (the CSS preprocessor)

This is only supported in monaco editor
parent 6f536bf7
......@@ -81,6 +81,10 @@ def manage_page_footer(self):
mode = 'xml'
textarea_selector = 'textarea[name="text:text"]'
if mode == 'plain_text':
if document.getId().endswith('.less'):
mode = 'less'
if not textarea_selector:
return default
......
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