DDOC- how to customize

Gary Willoughby dev at nomad.so
Wed Jan 1 06:47:32 PST 2014


On Wednesday, 1 January 2014 at 10:10:23 UTC, Mineko wrote:
> On Tuesday, 31 December 2013 at 22:58:04 UTC, Jonathan M Davis
> wrote:
>> On Tuesday, December 31, 2013 12:33:06 Charles Hixson wrote:
>>> In ddoc, if there is a way, how could I make, say, class 
>>> names in the
>>> generated documentation be blue?  Here I only want to change 
>>> class and
>>> struct titles, and possibly enums;  I'd also like to make 
>>> functions be,
>>> say, green.
>>> (FWIW, I don't want to change the documentation text, only 
>>> the titles.)
>>
>> http://stackoverflow.com/questions/18672679/richer-coloring-and-typesetting-in-ddoc-output
>>
>> - Jonathan M Davis
>
> I don't believe there's any parameters for that, you might wanna
> use ddox or customize ddoc's source code.

There is a way but it means overriding the built-in macros inside 
your own .ddoc file which includes class names and id's. Then you 
can style with CSS. I've added an answer to the SO question.


More information about the Digitalmars-d-learn mailing list