[OT] Re: Redesign of dlang.org

Sönke Ludwig via Digitalmars-d digitalmars-d at puremagic.com
Tue Jul 29 01:27:40 PDT 2014


Am 29.07.2014 00:54, schrieb w0rp:
> On Monday, 28 July 2014 at 22:38:10 UTC, Sönke Ludwig wrote:
>>> I'll look at playing with the style of the documentation pages some more
>>> another evening. I've had a few ideas for improvements, and I obviously
>>> still need to include syntax highlighting. Is this the library which is
>>> being used on the live site now for that?
>>>
>>> https://code.google.com/p/google-code-prettify/
>>
>> That plus some modifications to add D support. But my plan was to use
>> server side highlighting using Brian Schott's lexer in the future.
>
> That's probably a good call. Were you thinking of discovering <code>
> blocks in pages and running the lexer on them to produce the formatted
> output?

The other way around. DDOX and the Markdown processor would directly 
call the syntax highlighter on code sections they encounter. The result 
would then directly be written to the output range.


More information about the Digitalmars-d mailing list