Search the web
Sign In
New User? Sign Up
jasspa · JASSPA's MicroEmacs
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
PHP comments -- javadoc style, formatting, extra space   Message List  
Reply | Forward Message #2300 of 2530 |
I've been writing PHP code of late and have the following problem, and am
hoping someone can point me in the right direction.

Comments that should look like this ("javadoc" style)

/**
* dbGetPatchData: Read problems table data for a given server.
*
* @param $serverName The server to get data for.
* @param $patchData Ref to array to store fields and data.
*/

instead get formatted by ME to look like this

/**
* dbGetPatchData: Read problems table data for a given server.
*
* @param $serverName The server to get data for.
* @param $patchData Ref to array to store fields and data.
*/

(i.e., there is an extra space before the '*' from the second line onward.)

It does this when I hit Tab on those lines -- it auto-formats them the way
I pasted above. Obviously the indent feature is doing it.

What controls this? I've looked at the hkphp.emf, hkphps.emf and tried
things like messing with the .fhook-phps.comment variable... but it
doesn't seem to help at all.

This comment style works perfectly if I edit a .c or .cpp or .java file,
so I KNOW the indentation code can work right if it wants to :-)

Running "MicroEmacs 06 - Date 2006/09/09 - win32".

Thanks

--
Thomas Hundt <tom@...> +1-415-867-6698




Mon Mar 3, 2008 11:14 pm

thundt
Offline Offline
Send Email Send Email

Forward
Message #2300 of 2530 |
Expand Messages Author Sort by Date

I've been writing PHP code of late and have the following problem, and am hoping someone can point me in the right direction. Comments that should look like...
Thomas Hundt
thundt
Offline Send Email
Mar 3, 2008
11:14 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help