Return-Path: X-Original-To: apmail-httpd-docs-archive@www.apache.org Delivered-To: apmail-httpd-docs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 147419CD2 for ; Tue, 24 Apr 2012 13:21:22 +0000 (UTC) Received: (qmail 84948 invoked by uid 500); 24 Apr 2012 13:21:21 -0000 Delivered-To: apmail-httpd-docs-archive@httpd.apache.org Received: (qmail 84903 invoked by uid 500); 24 Apr 2012 13:21:21 -0000 Mailing-List: contact docs-help@httpd.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: docs@httpd.apache.org List-Id: Delivered-To: mailing list docs@httpd.apache.org Received: (qmail 84894 invoked by uid 99); 24 Apr 2012 13:21:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2012 13:21:21 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.160.173] (HELO mail-gy0-f173.google.com) (209.85.160.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2012 13:21:13 +0000 Received: by ghrr14 with SMTP id r14so415894ghr.18 for ; Tue, 24 Apr 2012 06:20:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer:x-gm-message-state; bh=N/u3eFXQs45/On1Rkes5DonrK4Cnt+00kITtEQ5OgF4=; b=M6ViMShSj4pgHVbKX+0MwjnHLORTqMKJb0f3T1mvGHkl9PlX7IUXQxHeU3biJBKXt/ 1MJpP3Wm+J2gX/Fd2t6c6k1dCyKfK3bubXT8eKh2OPTWpjcfq44FQVS5Vwqp/mEDmakc A4huYIL+Uttu3/OL4cO/eDOuhGav14qjrCk0ZAg7K7uZwYX7tBll1XlV0QzoniBdJt47 2ln2H8mdiKGpk1L2YPrOchH3357V3vOby8+rvCADpx4/npMaYCxjdfUNPtzZvW/FSq2W 33V0bCGPMEFc4VyN04RjZQh7bekWOhqQYxFklpxh2IfhAgoiCdwd2rlWDwk7MvwbFTPC 6C4Q== Received: by 10.50.193.199 with SMTP id hq7mr9916070igc.49.1335273651947; Tue, 24 Apr 2012 06:20:51 -0700 (PDT) Received: from [192.168.0.198] (74-131-224-250.dhcp.insightbb.com. [74.131.224.250]) by mx.google.com with ESMTPS id gf4sm15721326igb.14.2012.04.24.06.20.50 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Apr 2012 06:20:51 -0700 (PDT) From: Rich Bowen Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: multipart/alternative; boundary="Apple-Mail=_08DA11DA-8B61-470A-86D6-3AAB0B9DEED9" Subject: Re: Syntax Highlighting Date: Tue, 24 Apr 2012 09:20:49 -0400 In-Reply-To: <4F96A653.8020303@cord.dk> To: docs@httpd.apache.org References: <77894d0e-5110-44a6-b044-218a8717a912@iris> <4F96A653.8020303@cord.dk> Message-Id: <5A9892E4-4262-4173-BE70-E94FAB2E2E15@rcbowen.com> X-Mailer: Apple Mail (2.1257) X-Gm-Message-State: ALoCoQkbviOZDwziuHloR3BV1i9Zj9w4RoOhMLMiW44UXc0vp/TcIzzSq9UumlQu1BSzwFP+t+7d --Apple-Mail=_08DA11DA-8B61-470A-86D6-3AAB0B9DEED9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii >>=20 > 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: >
> print($foo, $bar);
> 
So, it doesn't currently support httpd syntax, but could be persuaded to = probably. Looking at the code ... -- Rich Bowen rbowen@rcbowen.com :: @rbowen rbowen@apache.org --Apple-Mail=_08DA11DA-8B61-470A-86D6-3AAB0B9DEED9 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

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/lan= g/ ) and, for example to highlight Perl
scripts, use:
<pre = class=3D"sh_perl">
print($foo, = $bar);
</pre>

So,= it doesn't currently support httpd syntax, but could be persuaded to = probably. Looking at the code ...

--
Rich Bowen
rbowen@rcbowen.com :: = @rbowen
rbowen@apache.org





= --Apple-Mail=_08DA11DA-8B61-470A-86D6-3AAB0B9DEED9--