Thanks for the responses. I actually thought about creating syntax files for gvim, but I really wouldn't know where to start. Plus, I think I'd rather just spend the time working on my project with eruby without the highlighting! Kyle Alan Chen wrote: > On Fri, Aug 16, 2002 at 09:53:02PM +0900, Hugh Sasse Staff Elec Eng wrote: > >>On Fri, 16 Aug 2002, Kyle Wilson wrote: >> >> >>>Hello. I was wondering if anyone knows of a text editor which will >>>perform syntax highlighting correctly for eruby/html code. I'm looking >>>for something similar to the way PHP/html is handled by vim. Thanks. >> >>I don't know if one exists already, but I'd imagine that you need to >>create an rhtml vim syntax file for these pages, which could be done by >>combining the ruby syntax file with the html syntax file. I suspect >>that it will be a fairly big job, though. Then I think you need to >>look at how vim determines the file type so that it can pick up the >>.rhtml file and recognise it correctly. >> >>I don't know much about writing syntax files, but if you find a way >>to escape out of one syntax and into another I think it would be >>very useful, for rhtml and for shellscripts with things like ruby -e >>program, or sed -e program, or perl -e program, so that the program >>can be highlighted correctly. > > > Not looking for a vi vs emacs flamewar here, but emacs also has > mmm-mode which allows you to embed any major emacs mode into > another, using regexps to toggle between regions. I've been > using it quite happily. >