views:

96

answers:

5

Hello

Does anyone know of an application (for mac) which will format a page of html code nicely?

ie Open the html file and indent all of the code/blocks, put character returns in and format it into sections so that it is readable rather than being just a big block of code. Then also give the ability to minimize/collapse sections of the code to make it more readable.

I've been trying Coda and Expresso - Expresso has the feature to minimize/collapse code but does not seem to be able to format code.

Please help?

A: 

I use BBEdit for this.

S.Lott
I typically stay far away from any software that uses vulgar for promotion.
slypete
+1  A: 

Try TACO HTML Edit

or

JEdit (Freeware)

Bye.

RRUZ
+1  A: 

Try using tidy. I think it is included in OSX (at least the command is there on my system) so you won't need to install anything to use it.

envalid
+4  A: 

TextMate is a really cool app. There are hundreds of bundles for all possible languages.

Philipe Fatio
Although I personally prefer working with Emacs, TextMate meets the questioner's requirements exactly (code folding in Emacs is less than perfect).
Pinochle
Do you know where the option is to organize the html tags?
Adam
A: 

Textmate will do a nice job.

If you are a java or ruby programmer, Intellj or Rubymine does an excellent job of auto-formatting code(including HTML).

ez