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

CSS How to Make a Website Customizing Colors and Fonts Use Color in CSS

MacLorand Mushiva
MacLorand Mushiva
5,419 Points

How do I get the color coding in the workspace editor?

Workspace

2 Answers

Simon Klit
Simon Klit
1,686 Points

What exactly do you mean? As in colored words when you are coding (for your information, that is generally referred to as "syntax highlighting")?

It should happen automatically. Make sure that the file extension is that of the wanted language. So, if you're coding some css, make sure the file ends with .css, and then the workspace should fix it all up automatically.

MacLorand Mushiva
MacLorand Mushiva
5,419 Points

I've followed the naming convention for the css document but I don't have the syntax highlighting in my workspace for the css, strangely enough I don't see a color preview of hex code either. Using the latest firefox browser.