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

codemirror: enable matchtag addon

https://codemirror.net/demo/matchtags.html

makes editions of web pages and xml easier
parent 77e40e94
......@@ -56,6 +56,8 @@
<script type="text/javascript" src="&dtml-portal_url;/csslint.js"></script>
<script type="text/javascript" src="&dtml-portal_url;/codemirror/addon/lint/css-lint.js"></script>
<dtml-elif expr="mode == 'htmlmixed'">
<script type="text/javascript" src="&dtml-portal_url;/codemirror/addon/fold/xml-fold.js"></script>
<script type="text/javascript" src="&dtml-portal_url;/codemirror/addon/cm_edit/matchtags.js"></script>
<script type="text/javascript" src="&dtml-portal_url;/codemirror/mode/xml/xml.js"></script>
<script type="text/javascript" src="&dtml-portal_url;/codemirror/mode/javascript/javascript.js"></script>
<script type="text/javascript" src="&dtml-portal_url;/codemirror/mode/css/css.js"></script>
......@@ -522,6 +524,7 @@
tabSize: 2,
indentWithTabs: false,
matchBrackets: true,
matchTags: {bothTags: true},
extraKeys: extra_keys,
foldGutter: true,
lineWrapping: true,
......
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