5 <title>CodeMirror: Lua mode</title>
6 <link rel="stylesheet" href="../../lib/codemirror.css">
7 <script src="../../addon/edit/matchbrackets.js"></script>
8 <script src="../../lib/codemirror.js"></script>
9 <script src="lua.js"></script>
10 <link rel="stylesheet" href="../../theme/neat.css">
11 <style>.CodeMirror {border: 1px solid black;}</style>
12 <link rel="stylesheet" href="../../doc/docs.css">
15 <h1>CodeMirror: Lua mode</h1>
16 <form><textarea id="code" name="code">
18 example useless code to show lua syntax highlighting
19 this is multiline comment
22 function blahblahblah(x)
31 my_custom_function( 0x34 )
33 unknown_function( "some string" )
42 for k,v in ipairs( table ) do
46 x is a multi line string
48 but its definition is iside a highest level string!
58 var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
65 <p>Loosely based on Franciszek
66 Wawrzak's <a href="http://codemirror.net/1/contrib/lua">CodeMirror
67 1 mode</a>. One configuration parameter is
68 supported, <code>specials</code>, to which you can provide an
69 array of strings to have those identifiers highlighted with
70 the <code>lua-special</code> style.</p>
71 <p><strong>MIME types defined:</strong> <code>text/x-lua</code>.</p>