Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Introduction Global Structure: Part 1

Mark Bacolcol
Mark Bacolcol
7,354 Points

Auto-Formatting HTML on TextEdit?

I'm currently doing the HTML Deep Dive course and in the beginning Nick has mentioned that Mac users should be using TextEdit. I was wondering if there are settings to "auto-format"(?) the HTML as seen in the videos, meaning colors, indentation, closing tags. or is it an entirely different text editor?

3 Answers

Hey Mark! I think Nick was actually referring to TextMate. TextEdit isn't recommended, as it has formatting kind of like Microsoft Word does, and will interfere with your code. I made a post a while back on some good editors, which there doesn't seem to be any shortage of these days. :smiley:

Sam S
Sam S
4,447 Points

I would recommend brackets (http://brackets.io/), which also has code complete and is freeware, not free-to-try, which Sublime is.

To write HTML, you can use every text editor but if you want the colored syntax, indentation etc ... you can use Sublime Text 2, one of the best code editor for Mac and free !

Sublime Text is free to try but for an unlimited time, better say it.

Brackets is pretty nice too, there are also Coda, TextWrangler, Espresso ... but some aren't free.