From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Volkan YAZICI Newsgroups: gmane.emacs.help Subject: htmlize.sh Date: Fri, 27 Mar 2009 13:25:10 -0700 (PDT) Organization: http://groups.google.com Message-ID: <018d3c1a-bf21-49f2-bc78-75562c7a36f6@e38g2000yqa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1238186527 30580 80.91.229.12 (27 Mar 2009 20:42:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Mar 2009 20:42:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 27 21:43:25 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LnItR-0001ze-D6 for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Mar 2009 21:43:10 +0100 Original-Received: from localhost ([127.0.0.1]:50215 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnIs4-0000AB-AL for geh-help-gnu-emacs@m.gmane.org; Fri, 27 Mar 2009 16:41:44 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!e38g2000yqa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.lang.lisp,comp.lang.scheme Original-Lines: 37 Original-NNTP-Posting-Host: 88.230.186.228 Original-X-Trace: posting.google.com 1238185510 17308 127.0.0.1 (27 Mar 2009 20:25:10 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 27 Mar 2009 20:25:10 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e38g2000yqa.googlegroups.com; posting-host=88.230.186.228; posting-account=xozGQQoAAAD99EQH9srmwM1ajggyokYW User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.0.7) Gecko/2009021906 Firefox/3.0.7,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:168051 comp.lang.lisp:263775 comp.lang.scheme:79821 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63334 Archived-At: Hi, I've been looking for a syntax highlighter to integrate into texinfo to be able to colorize @lisp ... @end blocks. Actually, not just a syntax highlighting tool, I also want to be able to supply links to certain commands. (E.g. CLHS and MOP links to related Common Lisp commands.) Below are some of my experiences during my research. - I first tried my luck with Syntax::Highlight::Engine::Kate module. (Hey, texi2html is also written in Perl, should be easy to integrate.) But it doesn't take long to figure out that it is quite broken for Lisp family of programming languages. - You know that flashy http://paste.lisp.org/ pastebin, and it's code is a F/OSS. Despite it took a half of a day to decouple lisppaste from its unnecessary dependencies (e.g. araneida web server!), at the end I'm disappointed by the fact that I need to implement my own parsing routines for every other programming language. Long story, eh? At last, I end up with writing a small emacs shell script, called htmlize.sh[1][2], wrapped around htmlize.el[3]. Furthermore, htmlize.sh has an extensible syntax recognition enhancement module that you can introduce new functionalities relatively in ease; e.g., it provides CLHS and MOP symbol linking capabities for lisp-mode. I hope you find it useful too. (Did I say htmlize.sh is capable of syntax highlighting every piece of code that emacs is capable of?) Regards. P.S. Sorry for cross-posting. I thought Scheme guys might want to contribute some RNRS linking stuff too. [1] http://www.students.itu.edu.tr/~yazicivo/files/htmlize.tar.gz [2] http://www.students.itu.edu.tr/~yazicivo/files/htmlize.README.txt [3] http://www.emacswiki.org/emacs/Htmlize