For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > September 2005 > PHP, emacs and indenting









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PHP, emacs and indenting
Thomas Korsgaard

2005-09-29, 6:56 pm

Hi,

I've just set up a php developmint enviroment on my computer. I user
emacs 21.3 for editing and the php-mode (from sourgeforge) "plugin" for
emacs. And it seems to load the plug in fine.
The problem I'm having is that my code will not indent, so it looks
properly. Så my code look like:

if ($test){
echo "test is true;
}

and

for ($i=1;$i<=12;$i++) {
for ($j=1;$j<=12;$j++){
echo ($i * $j);
}
}

instead of what I would want it to look like:

if ($test){
echo ;
}

and

for ($i=1;$i<=12;$i++) {
for ($j=1;$j<=12;$j++){
echo ($i * $j);
}
}

Is there something I sould add ore change some where?

Thanks
/Thomas
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com