diff options
author | Nivesh Rajbhandari | 2012-02-20 11:14:44 -0800 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-02-20 11:14:44 -0800 |
commit | abf78e2d7a97d295ce5a1c425fd359d47379137e (patch) | |
tree | d08c91bd2aef31e6325e0b499b2ffc390018bec6 /js/codemirror/mode/smalltalk/index.html | |
parent | e80a79bff57fecf3aa9b869d8ed2de5fd815287c (diff) | |
parent | e23708721a71ca4c71365f5f8e8ac7d6113926db (diff) | |
download | ninja-abf78e2d7a97d295ce5a1c425fd359d47379137e.tar.gz |
Merge branch 'refs/heads/ninja-internal' into ToolFixes
Diffstat (limited to 'js/codemirror/mode/smalltalk/index.html')
-rw-r--r-- | js/codemirror/mode/smalltalk/index.html | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/js/codemirror/mode/smalltalk/index.html b/js/codemirror/mode/smalltalk/index.html deleted file mode 100644 index 67cb22b4..00000000 --- a/js/codemirror/mode/smalltalk/index.html +++ /dev/null | |||
@@ -1,56 +0,0 @@ | |||
1 | <!doctype html> | ||
2 | <html> | ||
3 | <head> | ||
4 | <title>CodeMirror 2: Smalltalk mode</title> | ||
5 | <link rel="stylesheet" href="../../lib/codemirror.css"> | ||
6 | <script src="../../lib/codemirror.js"></script> | ||
7 | <script src="smalltalk.js"></script> | ||
8 | <link rel="stylesheet" href="../../theme/default.css"> | ||
9 | <link rel="stylesheet" href="../../css/docs.css"> | ||
10 | <style> | ||
11 | .CodeMirror {border: 2px solid #dee; border-right-width: 10px;} | ||
12 | .CodeMirror-gutter {border: none; background: #dee;} | ||
13 | .CodeMirror-gutter pre {color: white; font-weight: bold;} | ||
14 | </style> | ||
15 | </head> | ||
16 | <body> | ||
17 | <h1>CodeMirror 2: Smalltalk mode</h1> | ||
18 | |||
19 | <form><textarea id="code" name="code"> | ||
20 | " | ||
21 | This is a test of the Smalltalk code | ||
22 | " | ||
23 | Seaside.WAComponent subclass: #MyCounter [ | ||
24 | | count | | ||
25 | MyCounter class >> canBeRoot [ ^true ] | ||
26 | |||
27 | initialize [ | ||
28 | super initialize. | ||
29 | count := 0. | ||
30 | ] | ||
31 | states [ ^{ self } ] | ||
32 | renderContentOn: html [ | ||
33 | html heading: count. | ||
34 | html anchor callback: [ count := count + 1 ]; with: '++'. | ||
35 | html space. | ||
36 | html anchor callback: [ count := count - 1 ]; with: '--'. | ||
37 | ] | ||
38 | ] | ||
39 | |||
40 | MyCounter registerAsApplication: 'mycounter' | ||
41 | </textarea></form> | ||
42 | |||
43 | <script> | ||
44 | var editor = CodeMirror.fromTextArea(document.getElementById("code"), { | ||
45 | lineNumbers: true, | ||
46 | matchBrackets: true, | ||
47 | mode: "text/x-stsrc", | ||
48 | indentUnit: 4 | ||
49 | }); | ||
50 | </script> | ||
51 | |||
52 | <p>Simple Smalltalk mode.</p> | ||
53 | |||
54 | <p><strong>MIME types defined:</strong> <code>text/x-stsrc</code>.</p> | ||
55 | </body> | ||
56 | </html> | ||