index.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <!doctype html>
  2. <title>CodeMirror: CSS mode</title>
  3. <meta charset="utf-8"/>
  4. <link rel=stylesheet href="../../doc/docs.css">
  5. <link rel="stylesheet" href="../../lib/codemirror.css">
  6. <script src="../../lib/codemirror.js"></script>
  7. <script src="css.js"></script>
  8. <style>.CodeMirror {background: #f8f8f8;}</style>
  9. <div id=nav>
  10. <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
  11. <ul>
  12. <li><a href="../../index.html">Home</a>
  13. <li><a href="../../doc/manual.html">Manual</a>
  14. <li><a href="https://github.com/codemirror/codemirror">Code</a>
  15. </ul>
  16. <ul>
  17. <li><a href="../index.html">Language modes</a>
  18. <li><a class=active href="#">CSS</a>
  19. </ul>
  20. </div>
  21. <article>
  22. <h2>CSS mode</h2>
  23. <form><textarea id="code" name="code">
  24. /* Some example CSS */
  25. @import url("something.css");
  26. body {
  27. margin: 0;
  28. padding: 3em 6em;
  29. font-family: tahoma, arial, sans-serif;
  30. color: #000;
  31. }
  32. #navigation a {
  33. font-weight: bold;
  34. text-decoration: none !important;
  35. }
  36. h1 {
  37. font-size: 2.5em;
  38. }
  39. h2 {
  40. font-size: 1.7em;
  41. }
  42. h1:before, h2:before {
  43. content: "::";
  44. }
  45. code {
  46. font-family: courier, monospace;
  47. font-size: 80%;
  48. color: #418A8A;
  49. }
  50. </textarea></form>
  51. <script>
  52. var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
  53. </script>
  54. <p><strong>MIME types defined:</strong> <code>text/css</code>, <code>text/x-scss</code> (<a href="scss.html">demo</a>), <code>text/x-less</code> (<a href="less.html">demo</a>).</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>
  56. </article>