summaryrefslogtreecommitdiffstats
path: root/media/CodeMirror-0.62/csstest.html
diff options
context:
space:
mode:
Diffstat (limited to 'media/CodeMirror-0.62/csstest.html')
-rw-r--r--media/CodeMirror-0.62/csstest.html60
1 files changed, 60 insertions, 0 deletions
diff --git a/media/CodeMirror-0.62/csstest.html b/media/CodeMirror-0.62/csstest.html
new file mode 100644
index 0000000..cb031a0
--- /dev/null
+++ b/media/CodeMirror-0.62/csstest.html
@@ -0,0 +1,60 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <script src="js/codemirror.js" type="text/javascript"></script>
+ <title>CodeMirror: CSS demonstration</title>
+ <link rel="stylesheet" type="text/css" href="css/docs.css"/>
+ </head>
+ <body style="padding: 20px;">
+
+<p>Demonstration of <a href="index.html">CodeMirror</a>'s CSS
+highlighter.</p>
+
+<div class="border">
+<textarea id="code" cols="120" rows="30">
+/* Some example CSS */
+
+@import url("something.css");
+
+body {
+ margin: 0;
+ padding: 3em 6em;
+ font-family: tahoma, arial, sans-serif;
+ color: #000;
+}
+
+#navigation a {
+ font-weight: bold;
+ text-decoration: none !important;
+}
+
+h1 {
+ font-size: 2.5em;
+}
+
+h2 {
+ font-size: 1.7em;
+}
+
+h1:before, h2:before {
+ content: "::";
+}
+
+code {
+ font-family: courier, monospace;
+ font-size: 80%;
+ color: #418A8A;
+}
+</textarea>
+</div>
+
+<script type="text/javascript">
+ var editor = CodeMirror.fromTextArea('code', {
+ height: "350px",
+ parserfile: "parsecss.js",
+ stylesheet: "css/csscolors.css",
+ path: "js/"
+ });
+</script>
+
+ </body>
+</html>