summaryrefslogtreecommitdiff
path: root/public/vendor/codemirror/mode/handlebars/index.html
diff options
context:
space:
mode:
authorWu Cheng-Han2016-01-17 14:28:04 -0600
committerWu Cheng-Han2016-01-17 14:28:04 -0600
commiteaa8ccaccb1091820d0a8d1223996a6dd057347d (patch)
tree6b4aaa3b3d1a2fed68147510142663222533775a /public/vendor/codemirror/mode/handlebars/index.html
parentce65e58096d57ace02723d11a125673f9d48c293 (diff)
Upgrade CodeMirror to 5.10.1 and now support fullscreen, jump-to-line in editor
Diffstat (limited to 'public/vendor/codemirror/mode/handlebars/index.html')
-rw-r--r--[-rwxr-xr-x]public/vendor/codemirror/mode/handlebars/index.html15
1 files changed, 3 insertions, 12 deletions
diff --git a/public/vendor/codemirror/mode/handlebars/index.html b/public/vendor/codemirror/mode/handlebars/index.html
index beaef87a..4f82d602 100755..100644
--- a/public/vendor/codemirror/mode/handlebars/index.html
+++ b/public/vendor/codemirror/mode/handlebars/index.html
@@ -1,4 +1,4 @@
-<!doctype html>
+<!doctype html>
<title>CodeMirror: Handlebars mode</title>
<meta charset="utf-8"/>
@@ -61,22 +61,13 @@
</textarea></form>
<script>
- CodeMirror.defineMode("htmlhandlebars", function(config) {
- return CodeMirror.multiplexingMode(
- CodeMirror.getMode(config, "text/html"),
- {open: "{{", close: "}}",
- mode: CodeMirror.getMode(config, "handlebars"),
- parseDelimiters: true});
- });
-
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
lineNumbers: true,
matchBrackets: true,
- mode: "htmlhandlebars"
+ mode: {name: "handlebars", base: "text/html"}
});
</script>
- </script>
-
+
<p>Handlebars syntax highlighting for CodeMirror.</p>
<p><strong>MIME types defined:</strong> <code>text/x-handlebars-template</code></p>