Edit File by line
/home/barbar84/www/wp-conte.../plugins/wp-file-.../lib/codemirr.../mode/lua
File: index.html
<!doctype html>
[0] Fix | Delete
[1] Fix | Delete
<title>CodeMirror: Lua mode</title>
[2] Fix | Delete
<meta charset="utf-8"/>
[3] Fix | Delete
<link rel=stylesheet href="../../doc/docs.css">
[4] Fix | Delete
[5] Fix | Delete
<link rel="stylesheet" href="../../lib/codemirror.css">
[6] Fix | Delete
<link rel="stylesheet" href="../../theme/neat.css">
[7] Fix | Delete
<script src="../../addon/edit/matchbrackets.js"></script>
[8] Fix | Delete
<script src="../../lib/codemirror.js"></script>
[9] Fix | Delete
<script src="lua.js"></script>
[10] Fix | Delete
<style>.CodeMirror {border: 1px solid black;}</style>
[11] Fix | Delete
<div id=nav>
[12] Fix | Delete
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
[13] Fix | Delete
[14] Fix | Delete
<ul>
[15] Fix | Delete
<li><a href="../../index.html">Home</a>
[16] Fix | Delete
<li><a href="../../doc/manual.html">Manual</a>
[17] Fix | Delete
<li><a href="https://github.com/codemirror/codemirror">Code</a>
[18] Fix | Delete
</ul>
[19] Fix | Delete
<ul>
[20] Fix | Delete
<li><a href="../index.html">Language modes</a>
[21] Fix | Delete
<li><a class=active href="#">Lua</a>
[22] Fix | Delete
</ul>
[23] Fix | Delete
</div>
[24] Fix | Delete
[25] Fix | Delete
<article>
[26] Fix | Delete
<h2>Lua mode</h2>
[27] Fix | Delete
<form><textarea id="code" name="code">
[28] Fix | Delete
--[[
[29] Fix | Delete
example useless code to show lua syntax highlighting
[30] Fix | Delete
this is multiline comment
[31] Fix | Delete
]]
[32] Fix | Delete
[33] Fix | Delete
function blahblahblah(x)
[34] Fix | Delete
[35] Fix | Delete
local table = {
[36] Fix | Delete
"asd" = 123,
[37] Fix | Delete
"x" = 0.34,
[38] Fix | Delete
}
[39] Fix | Delete
if x ~= 3 then
[40] Fix | Delete
print( x )
[41] Fix | Delete
elseif x == "string"
[42] Fix | Delete
my_custom_function( 0x34 )
[43] Fix | Delete
else
[44] Fix | Delete
unknown_function( "some string" )
[45] Fix | Delete
end
[46] Fix | Delete
[47] Fix | Delete
--single line comment
[48] Fix | Delete
[49] Fix | Delete
end
[50] Fix | Delete
[51] Fix | Delete
function blablabla3()
[52] Fix | Delete
[53] Fix | Delete
for k,v in ipairs( table ) do
[54] Fix | Delete
--abcde..
[55] Fix | Delete
y=[=[
[56] Fix | Delete
x=[[
[57] Fix | Delete
x is a multi line string
[58] Fix | Delete
]]
[59] Fix | Delete
but its definition is iside a highest level string!
[60] Fix | Delete
]=]
[61] Fix | Delete
print(" \"\" ")
[62] Fix | Delete
[63] Fix | Delete
s = math.sin( x )
[64] Fix | Delete
end
[65] Fix | Delete
[66] Fix | Delete
end
[67] Fix | Delete
</textarea></form>
[68] Fix | Delete
<script>
[69] Fix | Delete
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
[70] Fix | Delete
matchBrackets: true,
[71] Fix | Delete
theme: "neat"
[72] Fix | Delete
});
[73] Fix | Delete
</script>
[74] Fix | Delete
[75] Fix | Delete
<p>Loosely based on Franciszek
[76] Fix | Delete
Wawrzak's <a href="http://codemirror.net/1/contrib/lua">CodeMirror
[77] Fix | Delete
1 mode</a>. One configuration parameter is
[78] Fix | Delete
supported, <code>specials</code>, to which you can provide an
[79] Fix | Delete
array of strings to have those identifiers highlighted with
[80] Fix | Delete
the <code>lua-special</code> style.</p>
[81] Fix | Delete
<p><strong>MIME types defined:</strong> <code>text/x-lua</code>.</p>
[82] Fix | Delete
[83] Fix | Delete
</article>
[84] Fix | Delete
[85] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function