in reply to Getting into Emacs?

Also, will Emacs answer my needs for HTML, CSS, JavaScript, PHP, MySQL, Perl, and Python coding? Especially when, for example, HTML and CSS, or PHP and HTML are mixed in a file?

Emacs has a "mixed mode" which allows it to handle this sort of thing. I use it for editing Mason pages with in-line perl code.

Replies are listed 'Best First'.
Re^2: Getting into Emacs?
by doom (Deacon) on Apr 11, 2008 at 20:54 UTC

    Emacs has a "mixed mode" which allows it to handle this sort of thing. I use it for editing Mason pages with in-line perl code.
    Yes, you probably mean "mmm-mode"... it was originally written to deal with Mason (perl and html intermixed) so that case should certainly work out-of-the-box. In theory, with a little setup you can use this on any number of combinations (myself, I still need to look into how to deal with SQL embedded in perl heredocs...):
    On the emacswiki:
    MultipleModes
    HtmlModeDeluxe

    I could not tell you if something like this has ever been written for vim, but I have my doubts it would be that easy to do... certainly I've never heard of anything like it.

    Obviously, I also like the emacswiki, and I tell people to check there first because for some reason the site doesn't rank very high in google searches. There's a page with pointers to different perl-related emacs projects:

    PerlLanguage

    (One of my fantasies is to someday set-up some kind of emacs bundle for people who want to use it to hack on perl...)

      Two seconds of googling would have confirmed that Vim has its own Mason mode with separate perl and HTML highlighting. It may not be implemented in the same way as the Emacs one, but it sounds pretty good.

        Two seconds of googling would have confirmed that Vim has its own Mason mode with separate perl and HTML highlighting. It may not be implemented in the same way as the Emacs one, but it sounds pretty good.

        Two seconds of reading what you've googled shows you just went looking for mason support: mmm-mode in theory at least, allows you to use multiple modes together in any combination. Just supporting mason isn't a bad trick by itself, but being able to mix and match anything in vim is what I'm a bit skeptical about.

        I could be wrong -- it's not like I'm a vim expert -- but it'll take me more that a couple of seconds to find out.

Re^2: Getting into Emacs?
by tmallen (Novice) on Apr 11, 2008 at 16:35 UTC
    And here's the other big question: Can Vim do these things as well?
      Of course. I don't use vim, but no editor could survive this long without capabilities like that.