Created
April 1, 2015 05:17
-
-
Save ibejohn818/6cb033cc540c99b64828 to your computer and use it in GitHub Desktop.
CodeMirror HTML with Folding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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