5 <title>CodeMirror: CSS mode</title>
6 <link rel="stylesheet" href="../../lib/codemirror.css">
7 <script src="../../lib/codemirror.js"></script>
8 <script src="css.js"></script>
9 <style>.CodeMirror {background: #f8f8f8;}</style>
10 <link rel="stylesheet" href="../../doc/docs.css">
13 <h1>CodeMirror: CSS mode</h1>
14 <form><textarea id="code" name="code">
15 /* Some example CSS */
17 @import url("something.css");
22 font-family: tahoma, arial, sans-serif;
28 text-decoration: none !important;
39 h1:before, h2:before {
44 font-family: courier, monospace;
50 var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
53 <p><strong>MIME types defined:</strong> <code>text/css</code>.</p>
55 <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#css_*">normal</a>, <a href="../../test/index.html#verbose,css_*">verbose</a>.</p>