Comments - PGML

From WeBWorK_wiki
Revision as of 18:04, 11 May 2015 by Dpvc (talk | contribs) (Initial version)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Comments in PGML

Comments in PGML are placed within [% ... %]. They can be used to comment out PGML commands or even partial commands, and they can be nested.

 This [% text %] is removed.  
 So are these [% partial [@ and incomplete %] commands.  
 Comments can be nested [% one [% two %] back to one %]

This lets you comment out whole sections of the text if you want:

 This text is shown.
 [%
 But this whole paragraph
 is not going to be shown
 until we remove the
 comment symbols.
 %]
 This is shown (and is part of the 
 same paragraph as the first line).