httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Gruno <>
Subject Re: Syntax Highlighting
Date Sat, 28 Apr 2012 06:01:10 GMT
On 28-04-2012 04:00, Daniel Ruggeri wrote:
> Do you have a few examples of different highlighters for different
> languages?
> and
> ... seem to be great
> examples of httpd config highlighting. This. Looks. Awesome.
> FWIW, I noticed a little weirdness on mod_proxy.html#envsettings (where
> "proxy" seems to be highlighted out of context).
>   ... is an HTML
> highlighter an option?
I'm unsure what you mean by different highlighters. If you mean
different types of software, then no - we kind'a had to stick with one
that was licensed with ASL, and the one we picked felt like the best
choice for an all-round highlighting.

If you merely mean how the existing highlighter works with different
languages, then there's plenty of examples in the docs:


As I probably mentioned, these different languages can be styled
individually, so if anyone feels strongly about a specific style, we can
accommodate that.

As for HTML highlighting, it is possible by simply changing the
<example> in mod_asis.xml to <highlight language="html">, but I'm having
some difficulty building the file after I do that, so I'll have to link
off-site for an example:

As for the weirdness, I have ironed that out for the moment by making
the lexer a bit stricter when it comes to section directives, but some
further tweaking is still needed, as the httpd config highlights are,
surprise surprise, not part of the standard highlighting feature, so we
had to build that ourselves. I hope this answers your questions, and if
not, just write back and such :)

With regards,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message