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.
I think this applies to most text editors that offer syntax
highlighting. I've used TextPad on Windoze and that suffers the same
problem. I suppose it's 'just' a matter of combining two syntax files
together to cure this problem?
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!
Well ok then, n syntax files where n is the number of languages you need
to use in one file. Seems it would need to be user configurable.