Commit e3f0d35f 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 e589303d
...@@ -49,6 +49,8 @@ ...@@ -49,6 +49,8 @@
<script type="text/javascript" src="&dtml-portal_url;/csslint.js"></script> <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> <script type="text/javascript" src="&dtml-portal_url;/codemirror/addon/lint/css-lint.js"></script>
<dtml-elif expr="mode == 'htmlmixed'"> <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/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/javascript/javascript.js"></script>
<script type="text/javascript" src="&dtml-portal_url;/codemirror/mode/css/css.js"></script> <script type="text/javascript" src="&dtml-portal_url;/codemirror/mode/css/css.js"></script>
...@@ -513,6 +515,7 @@ ...@@ -513,6 +515,7 @@
"Ctrl-I": "indentAuto", "Ctrl-I": "indentAuto",
"Shift-Tab": "indentLess", "Shift-Tab": "indentLess",
"Ctrl-S": function(cm){saveDocument(cm, $.Event('click'))}}, "Ctrl-S": function(cm){saveDocument(cm, $.Event('click'))}},
matchTags: {bothTags: true},
foldGutter: true, foldGutter: true,
lineWrapping: true, lineWrapping: true,
gutters: ["CodeMirror-lint-markers", gutters: ["CodeMirror-lint-markers",
......
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