Web-mode.el – an Emacs major mode for editing HTML templates
github.com
github.com
Only concern so far: javascript variables with underscores do not highlight correctly.
What I like the most is the speed. nxhtml/mumamo is too slow and sometimes it is even unusable.
It's also now included in bbatsov's Prelude[1] by default, which is nice since it eliminated the needs for the little hacks I was using to disable whitespace mode.
All in all, awesome project, and thanks so much for all the work you've put into it!
https://github.com/fgallina/multi-web-mode
Quite simple and elegant. But something that can work well with Jinja2 would be welcome. I'll take a look at web-mode.
Search failed: "<"
whenever I try to indent into a <script> tag. I also don't see any highlighting on the HTML, it's all grey. I guess installation failed for me. (I used marmalade.)
I was super excited as xhtml has a large set of problems and I've been looking for a replacement. Did anyone else have similar issues?
edit: html is suppose to be grey (I'm not a fan.) and the indentation failure on a script tag still remains. There's a work around, add a newline after the <script> and then indent.
It might be a problem with othere modes: "Syntax coloring does not work
Do not enable rainbow-mode or whitespace-mode with web-mode (see above). Moreover, some users might report issues when using themes that not play nicely with web-mode. Tip: when using emacs in a terminal, always try to enable 256 colors compatibility (xterm-256color)."
Update: Fixed some typos.
But web-mode (installed via ELPA) doesn't seem to be working at all, and any number of bits of my .emacs.d/ cruft could be to blame. Time for some -Q next reboot, perhaps.
It seems to be getting confused with the braces in the scala bits and the javascript code.
I'd love to hear about how you made it, did you generate any of the elisp with another program?
It's a wiki, go for it ;)