|
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8"> |
5 | 5 | <title>CodeMirror: Powershell mode</title> |
6 | | - <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/4.3.0/codemirror.css"> |
7 | | - <link rel="stylesheet" href="tests.css"> |
8 | | - <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/4.3.0/codemirror.js"></script> |
| 6 | + <link rel="stylesheet" href="../../doc/docs.css"> |
| 7 | + <link rel="stylesheet" href="../../lib/codemirror.css"> |
| 8 | + <script src="../../lib/codemirror.js"></script> |
9 | 9 | <script src="powershell.js"></script> |
| 10 | + <style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> |
10 | 11 | </head> |
11 | 12 | <body> |
12 | | - <h1>CodeMirror: Powershell mode</h1> |
| 13 | + <div id=nav> |
| 14 | + <a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a> |
13 | 15 |
|
14 | | - <div><textarea id="code" name="code"> |
| 16 | + <ul> |
| 17 | + <li><a href="../../index.html">Home</a> |
| 18 | + <li><a href="../../doc/manual.html">Manual</a> |
| 19 | + <li><a href="https://github.com/codemirror/codemirror">Code</a> |
| 20 | + </ul> |
| 21 | + <ul> |
| 22 | + <li><a href="../index.html">Language modes</a> |
| 23 | + <li><a class=active href="#">JavaScript</a> |
| 24 | + </ul> |
| 25 | + </div> |
| 26 | + <article> |
| 27 | + <h2>PowerShell mode</h2> |
| 28 | + |
| 29 | + <div><textarea id="code" name="code"> |
15 | 30 | # Number Literals |
16 | 31 | 0 12345 |
17 | 32 | 12kb 12mb 12gB 12Tb 12PB 12L 12D 12lkb 12dtb |
@@ -173,16 +188,17 @@ <h1>CodeMirror: Powershell mode</h1> |
173 | 188 | X: |
174 | 189 | Y: |
175 | 190 | Z:</textarea></div> |
176 | | - <script> |
177 | | - var editor = CodeMirror.fromTextArea(document.getElementById("code"), { |
178 | | - mode: "powershell", |
179 | | - lineNumbers: true, |
180 | | - indentUnit: 4, |
181 | | - tabMode: "shift", |
182 | | - matchBrackets: true |
183 | | - }); |
184 | | - </script> |
| 191 | + <script> |
| 192 | + var editor = CodeMirror.fromTextArea(document.getElementById("code"), { |
| 193 | + mode: "powershell", |
| 194 | + lineNumbers: true, |
| 195 | + indentUnit: 4, |
| 196 | + tabMode: "shift", |
| 197 | + matchBrackets: true |
| 198 | + }); |
| 199 | + </script> |
185 | 200 |
|
186 | | - <p><strong>MIME types defined:</strong> <code>text/x-powershell</code>.</p> |
| 201 | + <p><strong>MIME types defined:</strong> <code>application/x-powershell</code>.</p> |
| 202 | + </article> |
187 | 203 | </body> |
188 | 204 | </html> |
0 commit comments