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 HTML Text Paragraphs and Headlines

How do I get my html to colour up in a similar way to the example? It makes it much easier to pick out.

There's blue for the tags, green and black etc

Ben Grieve
Ben Grieve
5,105 Points

Sublime Text has some great colour schemes.

5 Answers

Might want to try Sublime Text. I use it and really like it, Sublime also seems to be a popular choice around here as well.

Depending on which text editor you use all you have to do is change the color scheme. Play around with different color schemes to find one that you like. Make sure you save the file as .html so the editor recognizes the file type. If it's not saved or opened as an .html file it will display as plain text or all white.

Kris Phelps
Kris Phelps
7,609 Points

It is a feature of the text editor he is using. If you are using a Windows machine, an excellent text editor is Notepad++, which is free.

When editing HTML in Notepad++, make sure you go to Languages > H > HTML and it will automatically start to recognize the things you're typing in such as HTML tags and colorize them in a very helpful manner. Additionally, if you click on an opening HTML tag, it will highlight its closing tag so you can see where the opening and closing tags are.

It also works with a number of other languages that Treehouse teaches. :-)

Thanks Kris.

I'm working on a Mac so Notepad++ isn't available.

I'm thinking text wrangler may be my best bet https://itunes.apple.com/gb/app/textwrangler/id404010395?mt=12

Kris Phelps
Kris Phelps
7,609 Points

That seems like a nice option. If that doesn't work out for you, and you're OK paying for tools, other's that might work are Sublime Text (paid) and Ultra Edit (paid). Sublime Text has a very generous trial period before you buy (if I recall properly).

Spot on. Thank you for your help—appreciated.

Andy