Sha256: 38934758eef05f8f6abef14d81b0fc3f46d75b8de04b07a849e3917741bc370c
Contents?: true
Size: 973 Bytes
Versions: 2
Compression:
Stored size: 973 Bytes
Contents
h1 Let's try in-browser code editing /! script src="js/coffee-script.js" type="text/javascript" div class="container" id="code" textarea id="editor" cols="50" rows="10" style="width:30%" | # Hello # This looks ok. How very nice! a = 1 + 2 /! -------------------------------------------------------------- /! -- Include files needed by CodeMirror (CM) /! -------------------------------------------------------------- link rel="stylesheet" href="js/codemirror/lib/codemirror.css" script src="js/codemirror/lib/codemirror.js" /! CM utils that you use: script src="js/codemirror/lib/util/loadmode.js" /! CM modes that you use: script src="js/codemirror/mode/ruby/ruby.js" /! CM themes that you use: link rel="stylesheet" href="js/codemirror/theme/lesser-dark.css" script type="text/javascript" | var editor = CodeMirror.fromTextArea(document.getElementById("editor"), { lineNumbers: true, mode: "ruby", theme: "lesser-dark" });
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
swagr-0.0.10 | examples/examples01/views/edit.slim |
swagr-0.0.10 | templates/views/edit.slim |