Emacs comes with sgml-mode, and a derived html-mode. Both are rather simple and offer the insertion of tags based on a list of tag names and appropriate skeletons (see SkeletonMode). The original html-mode.el was written by MarcAndreessen.
Here are some things which enhance html-mode,HtmlChangeLog – Provide support for ChangeLog entries for HTML files.
HtmlChooserMode – choose nxml mode for XHTML, otherwise html mode (or one of the alternatives below)
HtmlCoding – get coding system from charset (only needed in Emacs 21)
HexColour – Preview in your buffer what the colour #034fA2 does look like
HtmlEndOfLine – C-e can take you to the end of the text or the end of the tag
HtmlQuote – quote special characters
HtmlRedirectPage – A skeleton for inserting a simple page for redirects in HTML.
html-sizes.el – update download files sizes shown in your HTML
HtmlToc – show a table of contents buffer for your document
IndentingHtml – indent based on document structure
IndentRegionAsOtherMode – Indent the region with another mode, but then return to the current mode.
tidy.el – Interface to the HTML Tidy program. (There is a newer version of this program called tidy-xhtml.el in nXhtml.)
PredictiveMode – “Intellisense” for HTML: predictive, context-sensitive completion of HTML tags, attributes, and other entities
I do not think Predictive Mode can do that. It is not a parser. Maybe it still belongs here because it is quite nice in predicting words when writing text in a HTML page - and it has a built in intellisense type UI. (And you can use it with CompanyMode intellisense style completion too.)
The modes that does parsing that can be used by completion UI:s are rather nxml-mode (part of Emacs 23 - soon)/nxhtml-mode (part of nXhtml). If you want intellisense style then go for version 1.88 of nXhtml (which includes CompanyMode to do this).– LennartBorgman
SkeletonMode#XhtmlSkeleton – A skeleton for inserting an XHTML file with the proper encoding attributes.
weblint.el – run weblint checking on save or on request
If you find html-mode too basic, here are some alternatives,ColdFusionMode and ColdFusionDeluxeMode – for that (non-free) web system
HtmlHelperMode – an angry fruit salad mode manually supporting many things (without relying on DTDs)
HtmlModeDeluxe – multi-major modes to combine PsgmlMode with php, javascript, css and many bells and whistles
nXhtml – a fancy web development environment including nxhtml-mode extending nxml-mode to XHTML, supports multiple major modes, etc
PsgmlMode – a complete SGML editing environment based on DTD
XmlMode – for XML specifics
YaHTML – yet another HTML mode, comes with YaTeX
CSS and CFM
If you want to edit CSS and CFM files using html-mode, add the following to your ~/.emacs file.(add-to-list 'auto-mode-alist '("\\.css$" . html-mode))
(add-to-list 'auto-mode-alist '("\\.cfm$" . html-mode))
Fill
as bullet pointsThe setup below gets FillAdapt to treat
as a bullet point, like for instance Eighty megabytes andconstantly swapping.
You can do the same with
, if you write
paragraphs that way too.(add-hook 'html-mode-hook
(lambda ()
(require 'filladapt)
(set (make-local-variable 'filladapt-token-table)
(append filladapt-token-table
'(("
[ \t]" bullet))))))See also filladapt-pat.el which has commands to setup
,and