www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - DDOC tip - Comments

reply Derek Parnell <derek psych.ward> writes:
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
Mar 08 2006
parent Victor Nakoryakov <nail-mail mail.ru> writes:
Derek Parnell wrote:
 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 :)
 

He, he... funny. I thought about comments in .ddoc files, but have got no idea. This is solution, thanx. -- Victor (aka nail) Nakoryakov nail-mail [at] mail.ru Krasnoznamensk, Moscow, Russia
Mar 12 2006