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
John Sawyer
1,305 PointsWhy does text in Sublime change color?
For example I will type a line of code and some is white, some red, some green, some yellow, etc.........
Any guidance is greatly appreciated. Thanks.
2 Answers
Adam Sackfield
Courses Plus Student 19,663 PointsIt is highlighting the syntax for you to make it easier to find what your are looking for. You can change the theme by going to preferences > color scheme.
I use Phoenix Tomorrow Night.
If you download the packet manager you can get extra themes or create your own.
John Sawyer
1,305 PointsThanks so much Adam. Are there actual "definitions" available by chance? I only ask as I'm stuck in a CSS track after uploading my first "google fonts" link where my header line is following the same color change as my links. Long story short if I move it around I can get it to follow the rest of my pages text (like it's supposed to) but see it changes color as I move it. I'm hoping to figure out what factor is driving this. I hope this doesn't sound to confusing..... And thanks again sir!
Greg Shilling
3,723 PointsA screenshot would probably help to clarify what you mean. I can't speak for Adam, but you comment did sound a bit confusing to me :)
It's normal that the colors change while you type because Sublime will detect when you're opening tags, typing in properties and values and the like. If everything is rendered in the same color, or if something seems to be seriously wrong, go to View -> Syntax in Sublime and check if the file is set to the correct language (for an HTML document, that would be HTML and for an external CSS file, it's CSS of course)
John Sawyer
1,305 PointsThanks Greg!
Adam Sackfield
Courses Plus Student 19,663 PointsAdam Sackfield
Courses Plus Student 19,663 PointsIt is highlighting the syntax for you to make it easier to find what your are looking for. You can change the theme by going to preferences > color scheme.
I use Phoenix Tomorrow Night.
If you download the packet manager you can get extra themes or create your own.