Reputation: 2469
<rant-mode> Have you ever seen a programming language that does not allow to add comments to the code? Welcome to the world of RTML (may it burn in hell)! </rant-mode>
What is the best technique (if any) you've adopted to comment your RTML code?
Thank you!
Upvotes: 3
Views: 413
Reputation: 3414
COMMENT Inserts a comment into the current page. Equivalent to HTML’s construct. A comment is just some text that becomes part of the page’s HTML source but does not get displayed on the screen. The actual text of the comment must be a string enclosed in double quotes (or a variable of type text).
Example:
COMMENT "nosearch"
HEAD
TITLE "untitled"
BODY
TEXT "This
please see: List of available RTML books and resources
Upvotes: 0
Reputation: 1247
To create a comment in RTML, click on your template, then New
, and in the textbox that says Simple, type (in quotes) your comment.
"**************** My comment and stuff ******************"
If you want to comment out a piece of code, insert your code after a MULTI
which groups multiple RTML statements and then a WHEN nil
. Everything after the WHEN nil
will never be executed.
WHEN nil
MULTI
TEXT @a-random-variable
Upvotes: 2
Reputation: 5695
I just had a look at RTML,I wouldn't like working with it directly (it's very ugly).
It seems that the best way would be to have source files, and a preprocessor that strips comments and probably includes shortcuts and new features, then automatically uploads the RTML (maybe even a wasabi for RTML).
You would need to do that in a real language, or go full throttle with something like ANTLR.
Upvotes: 0