[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: htmlize: Command line interface to

From: Jeff Mincy
Subject: Re: htmlize: Command line interface to
Date: Sat, 10 Jul 2004 15:15:35 -0400
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Military Intelligence (RC5 Windows), windows-nt)

On Fri, 09 Jul 2004, address@hidden wrote:

> Not really Lisp code, but I found htmlize.el so useful that I wanted
> to make it into a standalone tool, and thought I'd share my script
> with you.  If someone knows how to use htmlize (really font locking)
> without starting a X11 Emacs window, please let me know.  (If I use
> --batch, the output just become black because the display engine
> presumably optimize away all font locking.)
> #!/bin/sh
> emacs --geometry 0x0+1600+1200 --eval "(let ((coding-system-for-write 
> 'binary) (htmlize-before-hook (lambda () ($EMACSMODE) 
> (font-lock-fontify-buffer)))) (htmlize-file \"$INFILE\" \"$OUTFILE\") 
> (kill-emacs))"

Not really emacs code, but the highlight program is quite
good - fast, configurable, and extendable.  Available at


reply via email to

[Prev in Thread] Current Thread [Next in Thread]