Skip to content

Instantly share code, notes, and snippets.

@ibejohn818
Created April 1, 2015 05:17
Show Gist options
  • Save ibejohn818/6cb033cc540c99b64828 to your computer and use it in GitHub Desktop.
Save ibejohn818/6cb033cc540c99b64828 to your computer and use it in GitHub Desktop.
CodeMirror HTML with Folding
<?php
echo $this->Html->script([
"//rawgit.com/codemirror/CodeMirror/master/lib/codemirror.js",
"//rawgit.com/codemirror/CodeMirror/master/addon/hint/show-hint.js",
"//rawgit.com/codemirror/CodeMirror/master/addon/hint/xml-hint.js",
"//rawgit.com/codemirror/CodeMirror/master/addon/hint/html-hint.js",
"//rawgit.com/codemirror/CodeMirror/master/mode/xml/xml.js",
"//rawgit.com/codemirror/CodeMirror/master/mode/javascript/javascript.js",
"//rawgit.com/codemirror/CodeMirror/master/mode/css/css.js",
"//rawgit.com/codemirror/CodeMirror/master/mode/htmlmixed/htmlmixed.js",
"//rawgit.com/codemirror/CodeMirror/master/addon/fold/foldcode.js",
"//rawgit.com/codemirror/CodeMirror/master/addon/fold/foldgutter.js",
"//rawgit.com/codemirror/CodeMirror/master/addon/fold/brace-fold.js",
"//rawgit.com/codemirror/CodeMirror/master/addon/fold/xml-fold.js",
"//rawgit.com/codemirror/CodeMirror/master/addon/fold/markdown-fold.js",
"//rawgit.com/codemirror/CodeMirror/master/addon/fold/comment-fold.js",
]);
echo $this->Html->css([
"//rawgit.com/codemirror/CodeMirror/master/lib/codemirror.css",
"//rawgit.com/codemirror/CodeMirror/master/addon/hint/show-hint.css",
"//rawgit.com/codemirror/CodeMirror/master/addon/fold/foldgutter.css"
],"stylesheet");
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment