Friday, April 20, 2007
nXML (nXHMTL) Emacs Mode for Ruby on Rails (.rhtml)
nXML mode and the subsequent nXHTML mode for emacs are godsends. It makes web development in emacs feel natural and clean —very zen.
One problem: nXHTML doesn’t know about embedded Ruby (<% and %>). My beautiful emacs-ruby-rails setup was marred by this unfortunate detail… until now.
Marshall Vandegrift has a patch for nXML mode for emacs that makes all those nasty red underlines melt away. Thanks, Marshall! Maybe this patch will be incorporated into future versions of the derivative nXHTML mode?? (hint hint
)
in Computer | Permalink
LeoB said,
May 22, 2007 @ 1:37 pm
Half of it went into nXhtml, I hope the most important half, the idea. You can now easily turn on of those red underlines with C-c C-w.
They are good to have sometimes too, since they mark XHTML validation errors (which is not always useful when editing mixed code though).