D-oriented Syntax Highlighting Plugin for WordPress?

Adam D. Ruppe destructionator at gmail.com
Tue Jan 1 20:43:13 UTC 2019


On Tuesday, 1 January 2019 at 20:27:44 UTC, Ron Tarrant wrote:
> I couldn't find a list of supported languages.

Realistically, if you use Java or C++ highlighting, it will look 
plenty good enough for D too.

So take a look down my highlight test page for my adrdox 
generator:

http://dpldocs.info/experimental-docs/adrdox.highlight.html

(which btw i also happen to use for my new blog 
http://dpldocs.info/this-week-in-d/Blog.Posted_2018_12_31.html )


I wrote like 30 lines of code and very simple definitions to 
support all the languages in that test. And it is plenty good 
enough.

Of course, it DOES support D, extremely fully - it has a 
full-blown D lexer in there. But tbh if I use the C family 
highlighter for D you usually can't tell the difference.


More information about the Digitalmars-d-learn mailing list