#{ code region }#

Started by StackOverflow

StackOverflow Lv 1

Could you please have the lua interpreter (or a filter before it)
ignore any lines starting with #{ or #}

by doing this, external code editors like Notepad++ can have code regions setup, making our scripts much neater by categorising and compacting our functions. They should just be considered comments

example:

#{ Core Script
function main()
–blah
end
#}

#{ Math Library
function add()
– blah
end
#}

brow42 Lv 1

Try using –[[ and –]] for comment blocks. Also, set Notepad++ to Lua syntax.