Post details: HTML editing in emacs

1 May , 2007

Permalink 12:03 UTC, by Damien Krotkine Email , 171 words, 887 views   English (US)
Categories: Personal

HTML editing in emacs

I'm an emacs user since 2000, but I actually never really had to mess with HTML a lot, as I never did real web development (that's unusual nowadays, isn't it ?), until recently.

Here is the history of what I have used so far :

  • built-in html-mode: not really helpful
  • sgml-mode: better, but indentation and some HTML-only syntax are not well formated. But still a valid choice
  • sgml-mode + mmm-mode : I used that for Mason development. It did the trick pretty well.
  • nxml-mode: a very good mode, which is more XML oriented. The problem is that by default it tries to validate HTML, and its indentation is not working great by deafult (at least for me). However it's probably the best thing around if you need to edit XML within emacs

Slanning just told me he uses html-helper-mode. I tried it, and it seems to be what I need : a lightweight HTML mode with syntax highlighting and indentation working from scratch. Coupled with mmm-mode, it's probably the best way of editing HTML, JSP, Mason, etc.

Comments:

No Comments for this post yet...

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))

Damien Krotkine

August 2008
Mon Tue Wed Thu Fri Sat Sun
<< <     
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Search

Categories

Misc

XML Feeds

What is RSS?

Who's Online?

  • Guest Users: 131

powered by
b2evolution