[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Favourite editor



On Fri, 2005-04-22 at 02:56 +0100, lesleyb wrote:
> Chris Johnson wrote:
> > Any suggestions welcome.
> > 
> > 
> I use emacs.
> 
> Some say it's hard to learn/use bute personally I just type in emacs 
> <flename> & and get on with it.  I don't know about syntax highlighting 
> for php but it does it for Perl C HTML Java and I expect there is 
> something out there for php.
> 

I wasn't going to add to this thread ;) , but as I use emacs for php,
here is some useful info:

emacs syntax highlighting for php code works well _if you don't want to
put any html into the code_ - that is, if you use some sort of
templating system to write out the html and keep the .php files
containing program logic and database access stuff only.

Because this is what I do (and it's a good tip for all but the smallest
sites and applications) emacs works very nicely for my php editing.

The emacs php mode doesn't do much for your html, if you embed it in the
php, so if you tend to do this, then there is probably an editor that
will make your code look prettier and which will account for the fact
that php files often contain a ghastly messy mixture of php, sql and
html, possibly with some javascript and css chucked in for good measure!

Of course, it probably won't have a psychiatrist built in for tense
moments...

Seb

-- 
Hypercube Systems Ltd 'Embedded Linux Solutions'
35 Walkley Crescent Road, Sheffield, S6 5BA
Tel: 0845 4580277  Web: www.hypercubesystems.co.uk
gpg key: http://www.hypercubesystems.co.uk/ssl/seb.gpg.asc

Attachment: signature.asc
Description: This is a digitally signed message part