diff options
author | Valerio Virgillito | 2012-02-14 11:07:21 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-14 11:07:21 -0800 |
commit | f060190a3bffd9a16718f2ce0499699103d46372 (patch) | |
tree | a308fe7eacec2156c8212dff0892a3de925d5f9a /js/codemirror/mode/lua/index.html | |
parent | f766cc203f30ea43ae8b83cf4b65d45cc4435ee9 (diff) | |
parent | 33bc9d62b8e6694500bf14d5b18187bd99a520a3 (diff) | |
download | ninja-f060190a3bffd9a16718f2ce0499699103d46372.tar.gz |
Merge branch 'FileIO' of https://github.com/joseeight/ninja-internal into integration
Diffstat (limited to 'js/codemirror/mode/lua/index.html')
-rw-r--r-- | js/codemirror/mode/lua/index.html | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/js/codemirror/mode/lua/index.html b/js/codemirror/mode/lua/index.html deleted file mode 100644 index 532973a8..00000000 --- a/js/codemirror/mode/lua/index.html +++ /dev/null | |||
@@ -1,72 +0,0 @@ | |||
1 | <!doctype html> | ||
2 | <html> | ||
3 | <head> | ||
4 | <title>CodeMirror 2: Lua mode</title> | ||
5 | <link rel="stylesheet" href="../../lib/codemirror.css"> | ||
6 | <script src="../../lib/codemirror.js"></script> | ||
7 | <script src="lua.js"></script> | ||
8 | <link rel="stylesheet" href="../../theme/neat.css"> | ||
9 | <style>.CodeMirror {border: 1px solid black;}</style> | ||
10 | <link rel="stylesheet" href="../../css/docs.css"> | ||
11 | </head> | ||
12 | <body> | ||
13 | <h1>CodeMirror 2: Lua mode</h1> | ||
14 | <form><textarea id="code" name="code"> | ||
15 | --[[ | ||
16 | example useless code to show lua syntax highlighting | ||
17 | this is multiline comment | ||
18 | ]] | ||
19 | |||
20 | function blahblahblah(x) | ||
21 | |||
22 | local table = { | ||
23 | "asd" = 123, | ||
24 | "x" = 0.34, | ||
25 | } | ||
26 | if x ~= 3 then | ||
27 | print( x ) | ||
28 | elseif x == "string" | ||
29 | my_custom_function( 0x34 ) | ||
30 | else | ||
31 | unknown_function( "some string" ) | ||
32 | end | ||
33 | |||
34 | --single line comment | ||
35 | |||
36 | end | ||
37 | |||
38 | function blablabla3() | ||
39 | |||
40 | for k,v in ipairs( table ) do | ||
41 | --abcde.. | ||
42 | y=[=[ | ||
43 | x=[[ | ||
44 | x is a multi line string | ||
45 | ]] | ||
46 | but its definition is iside a highest level string! | ||
47 | ]=] | ||
48 | print(" \"\" ") | ||
49 | |||
50 | s = math.sin( x ) | ||
51 | end | ||
52 | |||
53 | end | ||
54 | </textarea></form> | ||
55 | <script> | ||
56 | var editor = CodeMirror.fromTextArea(document.getElementById("code"), { | ||
57 | tabMode: "indent", | ||
58 | matchBrackets: true, | ||
59 | theme: "neat" | ||
60 | }); | ||
61 | </script> | ||
62 | |||
63 | <p>Loosely based on Franciszek | ||
64 | Wawrzak's <a href="http://codemirror.net/1/contrib/lua">CodeMirror | ||
65 | 1 mode</a>. One configuration parameter is | ||
66 | supported, <code>specials</code>, to which you can provide an | ||
67 | array of strings to have those identifiers highlighted with | ||
68 | the <code>lua-special</code> style.</p> | ||
69 | <p><strong>MIME types defined:</strong> <code>text/x-lua</code>.</p> | ||
70 | |||
71 | </body> | ||
72 | </html> | ||