Thread overview
Re: DDOC- how to customize
Dec 31, 2013
Jonathan M Davis
Jan 01, 2014
Mineko
Jan 01, 2014
Gary Willoughby
Jan 01, 2014
Gary Willoughby
Jan 01, 2014
Charles Hixson
Dec 31, 2013
Charles Hixson
December 31, 2013
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
December 31, 2013
On 12/31/2013 02:57 PM, 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'm definitely not an expert at html, but it looks as if that answer is saying "You can't do it.  ddoc considers class declarations and function declarations to be the same kind of thing."  (I.e., it looks as if styles are defined in terms of level of indentation, <h1>, ..., <h6>.)  I'm not real sure about this because, as I said, I'm not an html expert, and my css and javascript skills are only what carry over from other languages I happen to know.

-- 
Charles Hixson

January 01, 2014
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.
January 01, 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.
January 01, 2014
On Wednesday, 1 January 2014 at 14:47:33 UTC, Gary Willoughby wrote:
> I've added an answer to the SO question.

The answers here: http://stackoverflow.com/a/20869751/13227
January 01, 2014
On 01/01/2014 06:58 AM, Gary Willoughby wrote:
> On Wednesday, 1 January 2014 at 14:47:33 UTC, Gary Willoughby wrote:
>> I've added an answer to the SO question.
>
> The answers here: http://stackoverflow.com/a/20869751/13227
>
That's richer coloring, alright.  It looks quite nice.  But the example doesn't include any classes, and when I scan through the code that seems appropriate, I don't see anything that sets the color for class name independent of the color of function.

-- 
Charles Hixson