) * ( ( ) ( ) ( /( * ) ( ` )\ ) )\ ) ( /( )\ ) ( /( )\())` ) /( )\))( (()/((()/( )\())( (()/( )\()) ((_)\ ( )(_))(_)()\ /(_))/(_))(_)\ )\ /(_))(_)\ _((_)_(_())(_()((_)_)) (_)) _((_)(_) (_)) _((_) | || |_ _|| \/ | | |_ _||_ /| __| / __|| || | | __ | | | | |\/| | |__ | | / / | _| _\__ \| __ | |_||_| |_| |_| |_|____|___|/___||___(_)___/|_||_| _/_/_/_/ A B O U T /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ htmlize.sh is a small shell script wrapped around htmlize.el with some syntax highligting enhancements for particular emacs modes. htmlize.sh has an extensible syntax recognition enhancement module that you can introduce new functionalities relatively easily; e.g., it provides CLHS and MOP symbol linking capabities for lisp-mode. (For further details you can check symbols-lisp-clhs.el and symbols-lisp-mop.el files.) htmlize.sh uses CSS classes for labeling HTML elements by default. For an example CSS configuration, see syntax.css in the package. You can get the most recent tarball (including git repository) from http://www.students.itu.edu.tr/~yazicivo/files/htmlize.tar.gz address. _/_/_/_/ D E M O /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_ # # htmlize.sh command line arguments. # $ ./htmlize.sh Invalid arguments: nil Usage: ./htmlize.sh [] # # Our target file to be htmlized. # $ cat /tmp/sbcl-server.lisp (defpackage :test (:use :cl :sb-bsd-sockets)) (in-package :test) (deftype octet () '(unsigned-byte 8)) (defun resolve-hostname (name) (cond ((eql name :any) #(0 0 0 0)) ((typep name '(vector * 4)) name) (t (car (host-ent-addresses (get-host-by-name name)))))) ... ... # # Run htmlize.sh over sbcl-server.lisp contents. (Pay attention that, emacs # deduces buffer mode from file extension; otherwise, we may need to supply it # manually to htmlize.sh.) # $ ./htmlize.sh /tmp/sbcl-server.lisp /tmp/sbcl-server.html Loading /home/vy/elisp/htmlize/htmlize.el (source)... Loading /home/vy/elisp/htmlize/symbols.el (source)... Loading /home/vy/elisp/htmlize/symbols-lisp-mop.el (source)... Loading /home/vy/elisp/htmlize/symbols-lisp-clhs.el (source)... Fontifying sbcl-server.lisp... Fontifying sbcl-server.lisp... (syntactically...) Fontifying sbcl-server.lisp... (regexps...) Fontifying sbcl-server.lisp... (regexps....) Fontifying sbcl-server.lisp... (regexps.....) Fontifying sbcl-server.lisp... (regexps......) Fontifying sbcl-server.lisp... (regexps.......) Fontifying sbcl-server.lisp... (regexps........) Fontifying sbcl-server.lisp... (regexps.........) Fontifying sbcl-server.lisp... (regexps..........) Fontifying sbcl-server.lisp... (regexps...........) Fontifying sbcl-server.lisp... (regexps............) Fontifying sbcl-server.lisp... (regexps.............) Fontifying sbcl-server.lisp... (regexps..............) Fontifying sbcl-server.lisp... (regexps...............) Fontifying sbcl-server.lisp... (regexps................) Fontifying sbcl-server.lisp... (regexps.................) Fontifying sbcl-server.lisp... (regexps..................) Fontifying sbcl-server.lisp... (regexps...................) Fontifying sbcl-server.lisp... (regexps....................) Fontifying sbcl-server.lisp... (regexps.....................) Fontifying sbcl-server.lisp... (regexps......................) Fontifying sbcl-server.lisp... (regexps.......................) Fontifying sbcl-server.lisp... (regexps........................) Fontifying sbcl-server.lisp... (regexps.........................) Wrote /tmp/sbcl-server.html # # htmlize.sh output # $ cat /tmp/sbcl-server.lisp (defpackage :test (:use :cl :sb-bsd-sockets)) (in-package :test) (deftype octet () '(unsigned-byte 8)) (defun resolve-hostname (name) (cond ((eql name :any) #(0 0 0 0)) ((typep name '(vector * 4)) name) (t (car (host-ent-addresses (get-host-by-name name)))))) ... ... _/_/_/_/ L I C E N S E /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_ Copyright (c) 2009, Volkan YAZICI All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.