How to use a non-standard DDoc section?

Derek Parnell derek at nomail.afraid.org
Mon Mar 3 23:29:45 PST 2008


On Sun, 02 Mar 2008 08:51:55 +0200, Max Samukha wrote:

> In the following example, the custom section header and contents are
> rendered as part of foo's descrition. I have not been able to persuade
> DDoc to make it a new section. Anybody knows how to do that?
> 
> /**
>     Params:
> 	foo     = bar
> 
> $(DDOC_SECTION_H Section header:)
> $(DDOC_SECTION Section contents)
> */

Try this ...

/**
    Params:
	foo     = bar

    Section_Header:
    Section contents

*/

A Section name can only consist of ASCII alphabetic characters and '_'. The
'_' is converted to a space on rendering.

-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
4/03/2008 6:21:04 PM


More information about the Digitalmars-d-learn mailing list