1
0

index.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  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">
  11. </head>
  12. <body>
  13. <h1>CodeMirror: CSS mode</h1>
  14. <form><textarea id="code" name="code">
  15. /* Some example CSS */
  16. @import url("something.css");
  17. body {
  18. margin: 0;
  19. padding: 3em 6em;
  20. font-family: tahoma, arial, sans-serif;
  21. color: #000;
  22. }
  23. #navigation a {
  24. font-weight: bold;
  25. text-decoration: none !important;
  26. }
  27. h1 {
  28. font-size: 2.5em;
  29. }
  30. h2 {
  31. font-size: 1.7em;
  32. }
  33. h1:before, h2:before {
  34. content: "::";
  35. }
  36. code {
  37. font-family: courier, monospace;
  38. font-size: 80%;
  39. color: #418A8A;
  40. }
  41. </textarea></form>
  42. <script>
  43. var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
  44. </script>
  45. <p><strong>MIME types defined:</strong> <code>text/css</code>.</p>
  46. <p><strong>Parsing/Highlighting Tests:</strong> <a href="../../test/index.html#css_*">normal</a>, <a href="../../test/index.html#verbose,css_*">verbose</a>.</p>
  47. </body>
  48. </html>