ddoc: Can I escape a colon?

H. S. Teoh via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Feb 23 13:39:11 PST 2017


On Thu, Feb 23, 2017 at 09:35:41PM +0000, Adam D. Ruppe via Digitalmars-d-learn wrote:
> On Thursday, 23 February 2017 at 21:17:33 UTC, H. S. Teoh wrote:
> > 	_Note: Blah blabbety blah
> 
> Nope.
> 
> Ddoc considers [A-Za-z_]+: to be a section header. You can trick it by
> doing something like
> 
> /++
>  Note: ass
> +/
[...]

Nah, that's overkill. This works:

	Note$(COLON) blah blah blah

Apparently COLON is defined to be ':' in the default ddoc macros, so you
needn't define it yourself.


T

-- 
2+2=4. 2*2=4. 2^2=4. Therefore, +, *, and ^ are the same operation.


More information about the Digitalmars-d-learn mailing list