Comments - PGML

From WeBWorK
Revision as of 18:04, 11 May 2015 by Dpvc (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, 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).
follow us