[Ilugc] code formatting in emacs?

  • From: mbchandar@xxxxxxxxx (balachandar muruganantham)
  • Date: Tue Jul 11 14:14:12 2006

On 7/11/06, R. Ramkumar <andyetitmoves@xxxxxxxxx> wrote:

how do i do code formatting in a existing php script? like setting
indentation automatically?

As and when you type the php script, emacs indents it automatically.
If you want to indent an existing script, select the region (maybe the
whole buffer: `C-x h') and use indent-region (bound to C-` in my

i couldnt understand the above line. all i use is default settings. i
am not using any keybindings.

setup, i am not sure if this is the default)

it moves on...

--
April 1: This is the day upon which we are reminded of
what we are on the other three hundred and sixty-four.
          -- Mark Twain, "Pudd'nhead Wilson's Calendar"



-- 
<name> balachandar muruganantham</name>
<Yahoo!> mbchandar</Yahoo!>
<Hotmail>  mbchandar</Hotmail>
<blog> http://www.balachandar.net/blog</blog>
<web>http://www.balachandar.net</web>
<talk> http://www.expertstalk.org</talk>
<shop>http://www.chennaishopping.com</shop>

Other related posts: