views:

238

answers:

3

I have a windows laptop (thinkpad) and somewhat recently rediscovered emacs and the benefit that all those wacky shortcuts can be when the arrow keys are located somewhere near you right armpit.

I was discouraged after php-mode, css-mode, etc, under mmm-mode was inconsistent, buggy, and refused to properly interpret some of my files. (In all fairness, I'm most likely doin' it wrong) So I eventually found the nxhtml package which worked pretty well.

However, nxhtml causes weird bugs and actually crashes on certain files (certain combinations of nested modes I supposed) under linux! (using Ubuntu 7.10 and Kubuntu 8.04)

I'd like to be able to work on the laptop as well as the home linux pc without having to deal with inconsistent implementations of something that shouldn't be this hard. I've googled and looked around and there's a good chance I'm the only human on the planet having these problems... Anyone got some advice?

(in lieu of an emacs solutions, a good enough cross-platform lightweight text editor with the dev features would also work I suppose...)

+1  A: 

Although I use emacs when I have to (ie. when I'm at the command line), I use Eclipse for all my real development work. If you get the Web Standards Toolkit plug-in for it, it can do syntax coloring, tag auto-completion, and other fun stuff.

Alternatively, if Eclipse is to "heavy" for you, jEdit is another excellent program for doing web development (it has most of it's web dev support built in, but you can also get some additional plug-ins for features like HTML Tidy).

Both programs are open source and Java-based, which means they're both free and run on (virtually) any platform.

machineghost
jEdit is amazing! Pending a fix I just found to a silly error that caused it crash (out of memory!) on Kubuntu, it looks like I have my solution!It starts faster than emacs now (waiting for emacs server), plugins look cool, and its very customizable. (It is ugly though!)
privatehuff
+1  A: 

You could try mmm-mode and multi-mode. I haven't tried them: I'm happy with nxhtml for now. What sort of problems did you encounter?

Anthony Williams
+1  A: 

Personally, I like mumamo-mode. I'm not sure if you're including that in your problem description, since it does rely on (and is usually downloaded with) nxhtml-mode. So I don't know if you're using mumamo or just some aspect of nxhtml that lets you use multiple modes.

If you're not using mumamo-mode, then I'd recommend trying it. It won't fix your nxhtml issues, but it is a pretty simple way to do editing of multi-mode files (works great for me, for HTML, CSS, JS, PHP, etc.)

insipid