httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Gruno <rum...@cord.dk>
Subject Re: Syntax Highlighting
Date Tue, 24 Apr 2012 13:10:43 GMT
On 24-04-2012 14:31, Igor Galić wrote:
>  
>> What other languages are available for syntax coloring? Trying to
>> remember what other examples we might have in the docs. Perl, I
>> expect.
> 
> httpd.conf syntax hilighting would be a good thing to have.
> 
>> --
>> Rich Bowen
>> rbowen@rcbowen.com :: @rbowen
>> rbowen@apache.org
> 
> i
> 
The specific highlighter I chose (mainly because it is quite lightweight
compared to some other solutions) is SHJS, which also supports well, any
language you may want to highlight. For a specific list, you can view it
at http://shjs.sourceforge.net/ - adding a new language is as simple as
including one of the language files in our documents (
http://shjs.sourceforge.net/lang/ ) and, for example to highlight Perl
scripts, use:
<pre class="sh_perl">
print($foo, $bar);
</pre>

With regards,
Daniel.

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Mime
View raw message