Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jan 2004 16:27:28 +0100 (CET)
From:      Marc van Woerkom <marc.vanwoerkom@fernuni-hagen.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        marc.vanwoerkom@fernuni-hagen.de
Subject:   ports/61384: NEW PORT: htmlize.el (turn emacs buffers into html files, grat for listings on the web)
Message-ID:  <20040115152728.BF11555FC@es-i2.fernuni-hagen.de>
Resent-Message-ID: <200401151530.i0FFUHld077578@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         61384
>Category:       ports
>Synopsis:       NEW PORT: htmlize.el (turn emacs buffers into html files, grat for listings on the web)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 15 07:30:16 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Marc van Woerkom
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
FernUniversitaet Hagen
>Environment:
System: FreeBSD es-i2.fernuni-hagen.de 4.9-STABLE FreeBSD 4.9-STABLE #0: Mon Jan 5 16:08:49 CET 2004 root@es-i2.fernuni-hagen.de:/easyraidhome/usr/obj/easyraidhome/usr/src/sys/Compaq-ES i386


	
>Description:
	This port allows to create nice syntax coloured listings for display on web sites
>How-To-Repeat:
	
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	htmlize.el
#	htmlize.el/Makefile
#	htmlize.el/pkg-descr
#	htmlize.el/pkg-plist
#	htmlize.el/pkg-message
#	htmlize.el/distinfo
#
echo c - htmlize.el
mkdir -p htmlize.el > /dev/null 2>&1
echo x - htmlize.el/Makefile
sed 's/^X//' >htmlize.el/Makefile << 'END-of-htmlize.el/Makefile'
X# New ports collection makefile for:	htmlize.el
X# Date created:		15 January 2004
X# Whom:			Marc van Woerkom <marc.vanwoerkom@fernuni-hagen.de>
X#
X# $FreeBSD:$
X#
X
XPORTNAME=	htmlize.el
XPORTVERSION=	1.16
XCATEGORIES=	textproc elisp
XMASTER_SITES=	http://fly.srk.fer.hr/~hniksic/emacs/
XDISTNAME=	${PORTNAME}
XEXTRACT_SUFX=
XEXTRACT_ONLY=
X
XMAINTAINER=	marc.vanwoerkom@fernuni-hagen.de
XCOMMENT=	Emacs major mode to create HTML files from Emacs buffers (in colour!)
X
XRUN_DEPENDS=	emacs:${PORTSDIR}/editors/emacs21
X
X#NO_WRKSUBDIR=	yes
XNO_BUILD=	yes
X
XLISPDIR=	${PREFIX}/share/emacs/site-lisp
X
Xdo-install:
X	${INSTALL_DATA} ${DISTDIR}/${DISTNAME} ${LISPDIR}
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-htmlize.el/Makefile
echo x - htmlize.el/pkg-descr
sed 's/^X//' >htmlize.el/pkg-descr << 'END-of-htmlize.el/pkg-descr'
XEmacs major mode to create HTML files from Emacs buffers (in colour!)
X
XThis major mode will output the contents of an Emacs buffer as a 
XHTML file, preserving the colour attributes of that buffer.
X
XThis is a pretty elegant solution to produce nice listings of your 
Xcode in Erlang, C++, SML, Ruby (or whatever esoteric language you can 
Xdig out a major mode for) to display on web sites.
X
XAs an example watch the ELISP code of this major mode
X
X  http://fly.srk.fer.hr/~hniksic/emacs/htmlize.el.html
X
XBecause the colouring depends only on your major mode and perhaps
Xsome individual settings (e.g. I prefer a dark background) you can 
Xturn any Emacs buffer into HTML.
X
X
XWWW: http://fly.srk.fer.hr/~hniksic/emacs/
X
X- Marc van Woerkom
Xmarc.vanwoerkom@fernuni-hagen.de
END-of-htmlize.el/pkg-descr
echo x - htmlize.el/pkg-plist
sed 's/^X//' >htmlize.el/pkg-plist << 'END-of-htmlize.el/pkg-plist'
Xshare/emacs/site-lisp/htmlize.el
END-of-htmlize.el/pkg-plist
echo x - htmlize.el/pkg-message
sed 's/^X//' >htmlize.el/pkg-message << 'END-of-htmlize.el/pkg-message'
X****************************************************************************
XTo use htmlize mode, add to your ~/.emacs the following lines:
X
X;; Enable syntax colouring
X(global-font-lock-mode)
X
X;; General emacs to HTML converter
X(require 'htmlize)
X
X****************************************************************************
END-of-htmlize.el/pkg-message
echo x - htmlize.el/distinfo
sed 's/^X//' >htmlize.el/distinfo << 'END-of-htmlize.el/distinfo'
XMD5 (htmlize.el) = 58ef49144157a446a131132c35dbf6fd
END-of-htmlize.el/distinfo
exit


Regards,
Marc
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040115152728.BF11555FC>