~ubuntu-branches/ubuntu/utopic/codemirror-js/utopic

« back to all changes in this revision

Viewing changes to mode/vbscript/index.html

  • Committer: Package Import Robot
  • Author(s): David Paleino
  • Date: 2012-04-12 12:25:28 UTC
  • Revision ID: package-import@ubuntu.com-20120412122528-8xp5a8frj4h1d3ee
Tags: upstream-2.23
ImportĀ upstreamĀ versionĀ 2.23

Show diffs side-by-side

added added

removed removed

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