On 28-04-2012 04:00, Daniel Ruggeri wrote: > Do you have a few examples of different highlighters for different > languages? > http://httpd.apache.org/docs/trunk/mod/mod_proxy.html and > http://httpd.apache.org/docs/trunk/mod/core.html ... 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). > > http://httpd.apache.org/docs/trunk/mod/mod_asis.html ... 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: Lua: http://httpd.apache.org/docs/trunk/mod/mod_lua.html Perl: http://httpd.apache.org/docs/trunk/howto/cgi.html#writing C: http://httpd.apache.org/docs/trunk/developer/modguide.html#snippets 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: http://www.humbedooh.com/apache/mod_asis.html.en 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, Daniel. --------------------------------------------------------------------- To unsubscribe, e-mail: docs-unsubscr...@httpd.apache.org For additional commands, e-mail: docs-h...@httpd.apache.org