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

Development Tools

How do you set up these features in Sublime Text 2 or Textmate?

"A text editor needs a few key features to be a good fit for programming

syntax highlighting for the language you are working on, for web design that's html, css & javascript auto indent indentation tracking (for nested elements in html) line numbers"

I noticed that these features were being used in the video but I can't figure out how to get all of them to work. Any help would be appreciated.

Thanks,

Peter

4 Answers

Matt West
Matt West
14,545 Points

Hi Peter!

Syntax highlighting should 'just work'. Sublime Text uses the file extension to guess the language of your code. If it doesn't you can set it manually using the menu in the bottom right corner of the editor window.

Auto-Indentation should 'just work' too. The settings for this are in a menu to the left of the language selector.

Matt

Thanks Matt that was really helpful!

Auto-Indentation isn't set by default in Sublime Text 2 unless I'm mistaken. Here is a screen shot: https://docs.google.com/file/d/0BzXT6nStDBmWQVRLVzBRQTJ3YlE/edit?usp=sharing

Which setting should I do for auto-indentation?

Peter

Ah I figured it out it's Indent using spaces!

I think that before users begin coding, an optional notification or video should come up suggesting which text editor TreeHouse used in the video and how to set up the settings. I'm sure this is done somewhere but it wasn't as intuitive as the rest of the content.

Cheers,

Peter

James Barnett
James Barnett
39,199 Points

@Peter - Treehouse mentions they are using Sublime Text 2 at the beginning of most learning adventures. If you start on a course that's in the middle of a learning adventure they assume that the text editor they are using is old news.

If you don't Sublime Text 2, you can try out Text Wrangler or Text Mate and see which one you like better,