DiigIT | IT Community
No Profile Image
Welcome Guest
New User? Register | Login

Indenting code

By: | 18 Feb 2009 2:55 am

Is there a good utility / programme to use - That will automatically indent PHP scripts (make them easier to read)

Comments

Hi,

I use Crimson Editor as it has excellent syntax highlighting. It also has auto indent but I turn that off because I indent differently.

By: | 18 Feb 2009

As an afterthought -

I use Crimson Editor for php.

I use MetaPad for text as it has excelent search and replace that includes nrt charactors. I often import a list of variables or constants into MetaPad and use the search and replace to turn it into a block of php code or mysql query string. Then back to Crimson Editor.

I use ConTEXT editing HTML/Javascript as it is very good at highlighting these expectialy Javascript.

Any one have better sugestions?

By: | 18 Feb 2009

nrt charactors. I often import a list of variables or of php code or mysql query string. Then back to expectialy Javascript.
specific to php, but you can download syntax files for most languages. It will also search & replace using regexs for 100+ pages if ever you needed to.

The free utility called "phpCodeBeautifier" is useful, which you can add to your right click. This is handy for re-formatting old code or if you`re using some
downloaded code.

Regards,

By: | 18 Feb 2009

I like PSPad, freeware, does everything Crimson Editor does and a bit more

http://www.pspad.com (No connection, just happy user)

By: | 18 Feb 2009

search/replace in multiple files. For instance, you could replace all instances of myhost.com with myhost.org throughout an entire website.

By: | 18 Feb 2009

Leave a comment

Enter the text in the image
img
Can't read?
Type the characters you see in the picture below.


Close Move