Neatro's Daikon! Code editor v1.1
A simple customizable code editor for browsers
Try it here :3
--Example of a lua script in the editor :D
--[[
Multiline
comments
]]--
--[==[
comment swords notation
]==]--
local fib, fib2 = 1, 1
local oneline = { foo = function() fib, fib2 = fib2, fib + fib2 return fib end }
local tablenotation = {
Neatro = 'here',
key = 'value',
key2 = 2,
innertable = {
loop = 0xF,
limit = 0xFF,
func = oneline[ 'foo' ]
},
}
function test()
if tablenotation.key2 + 2 == 4 then
print( 'fibtest1' )
for k = 0, tablenotation.innertable.loop do
print( tablenotation.innertable.func() )
end
fib = 1
fib2 = 1
print( 'fibtest2' )
while tablenotation.innertable.limit > fib2 do
print( tablenotation.innertable.func() )
end
end
end
test()