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

Sublime text 2 syntax highlight

Hi folks "I need a little help" I am trying to type some code in sublimetext 2 . But My syntax highlight is different from the Nick Pettit instruction video

I changed the syntax highlight here. But No use View/syntax/html Please help me out

6 Answers

hey satya, perhaps you haven't saved the file yet? when you start a brand new file without saving it with any ending as .php or .html or others you won't see any highlighting at all. guess that could be the problem here as you said the highlighting works fine when you open the projects files.

I think it may be the theme he's using.

You can try different ones by going to Preferences -> Color Scheme.

If you have Package Control you can then use that to get more themes by doing Preferences -> Package Control then select Install Packages and type 'theme' to find others to install.

It's probably because he has a different version of sublime.

But I opened the treehouse project files on my pc.They are fine too. It is only happening in my file

I compared project file and my file. Both are using Monokai color scheme Thank you

When you open Sublime 2, on lower right corner there are option to choose what kind of highlight depending on file type. If you're working on HTML, you can select HTML. If working on CSS, then select CSS from that menu. There are many options to choose from that menu.

Hope this help you.

Thanks for the reply Daniel lute But As I mentioned above I already changed the syntax highlight to html and color scheme is same too

Saving the file did the trick. Thanks again Alex !