View Full Version : Comment syntax
Grimmbart
August 19th, 2010, 14:34
Hi,
how can i put a comment string in a script section of a control (genericcontrol or equivalent) ?
Stitched
August 19th, 2010, 14:53
Hi,
how can i put a comment string in a script section of a control (genericcontrol or equivalent) ?
I think all comments in LUA begin with a "--" (no quotes). What I am not sure about is if you need to nest them inside tags (most languages don't require this).
Grimmbart
August 19th, 2010, 15:01
I found in another RuleSet :
in lua file :
-- my comment
in a xml file in a script section
<script>
--[[my comment]]
...
...
</script>
Stitched
August 19th, 2010, 15:04
From Wikipedia:
-- A comment in Lua starts with a double-hyphen and runs to the end of the line.
--[[ Multi-line strings & comments
are adorned with double square brackets. ]]
I found in another RuleSet :
in lua file :
-- my comment
in a xml file in a script section
<script>
--[[my comment]]
...
...
</script>
Moon Wizard
August 19th, 2010, 17:20
The multi-line string format is required for comments in control script sections, but you can use either format for comments in separate script files.
Cheers,
JPG
Powered by vBulletin® Version 4.2.1 Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.