Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to format code in TextWrangler?

Tags:

I'm using TextWrangler on Mac OS X to do some web development. Is there a way to auto format code?

like image 593
dev.e.loper Avatar asked Sep 29 '11 06:09

dev.e.loper


1 Answers

Yes, there is a possibility but not a simple one. Using Text Filters, if you can find a filter your choice you put it into Library/Application Support/TextWrangler/Text Filters and reach it from Text/Apply Text Filter menu.

This is how you do it for XML: http://magp.ie/2010/02/15/format-xml-with-textwrangler/

and for PHP: http://wizguild.com/textwrangler_phptidy_filter/

like image 91
Sam Avatar answered Oct 14 '22 02:10

Sam