DDOC tip - Comments

Derek Parnell derek at psych.ward
Wed Mar 8 18:08:33 PST 2006


When writing a 'Ddoc' file, sometimes I've needed to place some comments
into the file, and I don't mean HTML comments, but stuff which will not get
generated at all. Anyhow, the way I've settled on is to code ...

 $(_ Some comment text and/or other macros eg. $(TITLE XYZZY) )

By using the non-existent macro "_", dmd just ignores everything to the
next matching parenthesis.

Hope this is useful to someone else :)

-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Down with mediocracy!"
9/03/2006 1:04:07 PM



More information about the Digitalmars-d mailing list