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
satya jr
3,351 PointsSublime 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
Alex Heil
53,547 Pointshey 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.
Sean T. Unwin
28,690 PointsI 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.
Chase Lee
29,275 PointsIt's probably because he has a different version of sublime.
satya jr
3,351 PointsBut I opened the treehouse project files on my pc.They are fine too. It is only happening in my file
satya jr
3,351 PointsI compared project file and my file. Both are using Monokai color scheme Thank you
Daniel Lute
3,043 PointsWhen 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.
satya jr
3,351 PointsThanks for the reply Daniel lute But As I mentioned above I already changed the syntax highlight to html and color scheme is same too
satya jr
3,351 PointsSaving the file did the trick. Thanks again Alex !