Bug 61384 - NEW PORT: textproc/htmlize.el (turn emacs buffers into html files, great for listings on the web)
Summary: NEW PORT: textproc/htmlize.el (turn emacs buffers into html files, great for ...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-15 15:30 UTC by Marc van Woerkom
Modified: 2005-02-18 10:30 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc van Woerkom 2004-01-15 15:30:16 UTC
	This port allows to create nice syntax coloured listings for display on web sites

Fix: 

Regards,
Marc--wgbkSWv7Wl16OOzOZ7a4QBtxqr1SNQemeIsglWc1GlUh1Dpp
Content-Type: text/plain; name="file.shar"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.shar"

# 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
Comment 1 Marc van Woerkom 2004-03-26 21:45:46 UTC
Why is nobody commiting this nice port?

It uses Emacs various syntax colouring modes and allows to put nice
listings of everything that comes with such a mode on the web.

Regards,
Marc
Comment 2 Volker Stolz freebsd_committer freebsd_triage 2004-05-10 22:18:35 UTC
Hm, this one is also in xemacs-packages. Is this the same version? 
Somehow having seperate ports installing the same files in different 
places doesn't feel right, though IANE.

Volker
Comment 3 Pav Lucistnik freebsd_committer freebsd_triage 2005-02-18 10:29:56 UTC
State Changed
From-To: open->closed

New port added, thank you!