[Ilugc] code formatting in emacs?

  • From: andyetitmoves@xxxxxxxxx (R.Ramkumar)
  • Date: Tue Jul 11 14:04:27 2006

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
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"

Other related posts: