Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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