source: trunk/plugins/LocalFilesEditor/codemirror/mode/css/index.html @ 10307

Last change on this file since 10307 was 10307, checked in by patdenice, 13 years ago

feature:2262
Replace editarea by Codemirror:
http://codemirror.net

File size: 1.1 KB
Line 
1<!doctype html>
2<html>
3  <head>
4    <title>CodeMirror 2: CSS mode</title>
5    <link rel="stylesheet" href="../../lib/codemirror.css">
6    <script src="../../lib/codemirror.js"></script>
7    <script src="css.js"></script>
8    <link rel="stylesheet" href="css.css">
9    <style>.CodeMirror {background: #f8f8f8;}</style>
10    <link rel="stylesheet" href="../../css/docs.css">
11  </head>
12  <body>
13    <h1>CodeMirror 2: CSS mode</h1>
14    <form><textarea id="code" name="code">
15/* Some example CSS */
16
17@import url("something.css");
18
19body {
20  margin: 0;
21  padding: 3em 6em;
22  font-family: tahoma, arial, sans-serif;
23  color: #000;
24}
25
26#navigation a {
27  font-weight: bold;
28  text-decoration: none !important;
29}
30
31h1 {
32  font-size: 2.5em;
33}
34
35h2 {
36  font-size: 1.7em;
37}
38
39h1:before, h2:before {
40  content: "::";
41}
42
43code {
44  font-family: courier, monospace;
45  font-size: 80%;
46  color: #418A8A;
47}
48</textarea></form>
49    <script>
50      var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
51    </script>
52
53    <p><strong>MIME types defined:</strong> <code>text/css</code>.</p>
54
55  </body>
56</html>
Note: See TracBrowser for help on using the repository browser.