digitalmars.D - DDOC tip - Comments
- Derek Parnell (13/13) Mar 08 2006 When writing a 'Ddoc' file, sometimes I've needed to place some comments
- Victor Nakoryakov (7/18) Mar 12 2006 He, he... funny. I thought about comments in .ddoc files, but have got
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
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