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

General Discussion

How to I add code to a forum post?

Hey guys, how do I add code to a forum post so others can check it out?

2 Answers

Put it between four ```` marks. Upper left keyboard.

<div>My code</div>

I've always wondered that too!

<div>Thanks</div>

Actually I can't get it to work like Kevin's answer above. The markdown cheatsheet (link below these paragraphs) says three backticks on the lines before and after but I'm having no such luck.

Oliver Gibbs - You need a blank line between your code and your backticks for the syntax highlighting to work.

You also might find the examples in this thread on how to type code in the forum to be helpful.