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

Amanda Rivera
Amanda Rivera
788 Points

Sharing code in the questions section of Treehouse.

I was wondering, how exactly do you post your code on the questions section? Just want to better explain my coding issues when they occur. Thanks

1 Answer

jenyufu
jenyufu
3,311 Points

There is a Markdown Cheatsheet link below every comment that you can click on that shows you how to format your post. I have copied and pasted it here:

Markdown Cheatsheet

Markdown is a short-hand syntax for easily converting text to HTML. Below are some popular examples of Markdown formatting. For more examples reference Markdown Basics for a more detailed overview.
Links

This is an [example link](http://example.com/)
Code

Wrap your code with 3 backticks (```) on the line before and after. If you specify the language after the first set of backticks, that'll help us with syntax highlighting.

            ```html
            <p>This is code!</p>
            ```


Italic

Here’s a word that is *emphasized*
Bold

Here’s a word that is **bold**
Images

![alt text](/path/to/img.jpg "Title")
Unordered List

+ Candy
+ Gum
+ Peanuts
Ordered List

1. Red
2. Green
3. Blue