Mercurial
comparison .cms/lib/codemirror/mode/vbscript/index.html @ 0:78edf6b517a0 draft
24.10
author | Coffee CMS <info@coffee-cms.ru> |
---|---|
date | Fri, 11 Oct 2024 22:40:23 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:78edf6b517a0 |
---|---|
1 <!doctype html> | |
2 | |
3 <title>CodeMirror: VBScript mode</title> | |
4 <meta charset="utf-8"/> | |
5 <link rel=stylesheet href="../../doc/docs.css"> | |
6 | |
7 <link rel="stylesheet" href="../../lib/codemirror.css"> | |
8 <script src="../../lib/codemirror.js"></script> | |
9 <script src="vbscript.js"></script> | |
10 <style>.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style> | |
11 <div id=nav> | |
12 <a href="https://codemirror.net/5"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png" alt=""></a> | |
13 | |
14 <ul> | |
15 <li><a href="../../index.html">Home</a> | |
16 <li><a href="../../doc/manual.html">Manual</a> | |
17 <li><a href="https://github.com/codemirror/codemirror5">Code</a> | |
18 </ul> | |
19 <ul> | |
20 <li><a href="../index.html">Language modes</a> | |
21 <li><a class=active href="#">VBScript</a> | |
22 </ul> | |
23 </div> | |
24 | |
25 <article> | |
26 <h2>VBScript mode</h2> | |
27 | |
28 | |
29 <div><textarea id="code" name="code"> | |
30 ' Pete Guhl | |
31 ' 03-04-2012 | |
32 ' | |
33 ' Basic VBScript support for codemirror2 | |
34 | |
35 Const ForReading = 1, ForWriting = 2, ForAppending = 8 | |
36 | |
37 Call Sub020_PostBroadcastToUrbanAirship(strUserName, strPassword, intTransmitID, strResponse) | |
38 | |
39 If Not IsNull(strResponse) AND Len(strResponse) = 0 Then | |
40 boolTransmitOkYN = False | |
41 Else | |
42 ' WScript.Echo "Oh Happy Day! Oh Happy DAY!" | |
43 boolTransmitOkYN = True | |
44 End If | |
45 </textarea></div> | |
46 | |
47 <script> | |
48 var editor = CodeMirror.fromTextArea(document.getElementById("code"), { | |
49 lineNumbers: true, | |
50 indentUnit: 4 | |
51 }); | |
52 </script> | |
53 | |
54 <p><strong>MIME types defined:</strong> <code>text/vbscript</code>.</p> | |
55 </article> |