ddoc and CODE_HIGHLIGHT macro

Nick Treleaven via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jul 26 08:31:01 PDT 2014


Hi,
Ddoc doesn't seem to expand a macro near top of 
http://dlang.org/hash-map.html:

// The $(CODE_HIGHLIGHT KeyType) is string

Which is weird because it expands it for 'remove' on this line not far 
below it:

b.remove("hello");

Maybe a bug in dmd?

Also, I build some dlang.org docs individually and CODE_HIGHLIGHT is 
inserting a line break in the html. I think this is because the macro 
has an empty line after it:

CODE_HIGHLIGHT=$(B $(I $0))

MDASH=<nobr>&#x200A;—&#x200A;</nobr>

I can't tell from git blame when it was introduced, the website html 
doesn't show the line break. Is there a workaround, or just remove the 
empty line?


More information about the Digitalmars-d-learn mailing list