2
0

index.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>CodeMirror: VBScript mode</title>
  6. <link rel="stylesheet" href="../../lib/codemirror.css">
  7. <script src="../../lib/codemirror.js"></script>
  8. <script src="vbscript.js"></script>
  9. <link rel="stylesheet" href="../../doc/docs.css">
  10. <style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
  11. </head>
  12. <body>
  13. <h1>CodeMirror: VBScript mode</h1>
  14. <div><textarea id="code" name="code">
  15. ' Pete Guhl
  16. ' 03-04-2012
  17. '
  18. ' Basic VBScript support for codemirror2
  19. Const ForReading = 1, ForWriting = 2, ForAppending = 8
  20. Call Sub020_PostBroadcastToUrbanAirship(strUserName, strPassword, intTransmitID, strResponse)
  21. If Not IsNull(strResponse) AND Len(strResponse) = 0 Then
  22. boolTransmitOkYN = False
  23. Else
  24. ' WScript.Echo "Oh Happy Day! Oh Happy DAY!"
  25. boolTransmitOkYN = True
  26. End If
  27. </textarea></div>
  28. <script>
  29. var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
  30. lineNumbers: true
  31. });
  32. </script>
  33. <p><strong>MIME types defined:</strong> <code>text/vbscript</code>.</p>
  34. </body>
  35. </html>