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

Tristan Gaebler
6,204 PointsWon't let me save as '.html'
I am taking to intro course to html. i was instructed to open up textedit on my mac. Text edit won't let me save a file as '.html'. It adds a weird extension to to the end. Also, could I just use sublime text instead of textedit?
4 Answers

Shawn Flanigan
Courses Plus Student 15,815 PointsTristan,
First you'll need to click "Format" and choose "Make Plain Text". HTML files (and CSS and PHP and any other code you write here) will need to be in plain text to avoid extra markup. Once you've done that, when you go to Save, you should see a drop down box that says "Plain Text Encoding: Unicode (UTF-8)". Now you should be able to save as an .html file.

David Torrence
7,731 PointsHm. You probably have the checkbox checked "If no extension is provided use ".txt"?
if so this will bring up a prompt asking you to use .html or use .txt? IF so, if you click use .html it should be fine.
But honestly ...
Drop Textedit and get Sublime Text. All will be well after that. You need the syntax highlighting and indentation among other things. Very powerful editor.
EDIT: NVM. Shawn has it.

Greg Kitchin
31,522 PointsI don't have a mac, but you should be able to simply rename a file to have a .html extension. A quick google on sublime text looks like it would suit your purposes.

Tristan Gaebler
6,204 PointsThanks Shawn, it worked!

Shawn Flanigan
Courses Plus Student 15,815 PointsI'm glad it helped! Can you mark the answer as the best one to show that it has been resolved (and earn me some points)? Thanks!