Is there any *good* HTML-mode for emacs?
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Thinking It Over
--
Chapters
00:00 Question
01:17 Accepted answer (Score 6)
01:33 Answer 2 (Score 41)
03:41 Answer 3 (Score 4)
03:59 Answer 4 (Score 4)
04:45 Thank you
--
Full question
https://superuser.com/questions/20126/is...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#emacs #php #html #javascript #syntaxhighlighting
#avk47
ACCEPTED ANSWER
Score 6
Have you checked out Emacs Wiki html page? nxhtml in particular looks useful.
ANSWER 2
Score 5
I've been dissatisified with the available modes, but I have found happiness recently using plain old html-mode
augmented with yasnippet
and tidy.el
. As the other answers have mentioned nxhtml mode is useful if you are writing xhtml.
If you are wanting to get highlighted php and javascript, you might want to look at mmm-mode
, which will allow you to run multiple major modes at once. I've never used it, so I don't know who it handles conflicting key bindings, etc... so you'll have to feel your way around there.
ANSWER 3
Score 4
Give multi-web mode a try, it's a minor mode designed with web editing in mind, it selects the appropriate major when the point moves around.
ANSWER 4
Score 1
I too use nXhtml mode for mixed mode editing having failed to get Multiple Modes working correctly. It has been a bit of a rocky ride but recent builds have proved to be useful. I'm running with Emacs 23 FWIW.