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
Adam Jarrell
8,817 PointsHi! I am wondering, and maybe this is a simple question, how and/or why are CSS comments displayed in italics?
I noticed in one of the 'workspaces' I was following along in the CSS comments were showing up italics. I like this emphasis and would like to carry it over, if possible, in my own coding. Is it just a feature of 'Workspaces' or will most or any text editors be able to do this? I am currently using Sublime and, alas, my comments are not italics...(sigh)
2 Answers
bleedcmyk
5,945 PointsJust a feature of treehouse workspaces. The actual italics dont do anything but help you differentiate between comments and actual code.
I'm not familiar with Sublime Text, but some text editors like Notepad++ will error-validate CSS as you go, and give you different colors for comments/closed brackets etc.
Adam Jarrell
8,817 PointsSublime offers some error validation, auto-completion, different colors for differing pieces of code. It doesn't do the italics though.
I don't know why but I like it. I realize it doesn't affect anything but the aesthetic value. Still, I like it. Thanks, for the prompt & concise answer. Have an upvote and the best answer marker!
bleedcmyk
5,945 PointsYou might want to read this over as well. It might be possible to change it in Sublime Text
https://www.sublimetext.com/forum/viewtopic.php?f=2&p=54999
Or maybe this?
Adam Jarrell
8,817 PointsCool, will do. Some good research friend.