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
Melissa Wheeler
6,306 PointsPosting code in the forum
How do I post code in the forum. Every time I try to help answer someone's question my code doesn't post. Make it's difficult to answer questions.
4 Answers
David Stocum
10,120 PointsIf you check in the Markdown Cheatsheet link below the comment window it shows how; there's a small sample of text that shows exactly how to do it.
Make sure you put the three backticks on separate lines above and below your code or it doesn't work right, which I spent a while figuring out a few hours ago.
Ken Alger
Treehouse TeacherMelissa;
You can also take a look at this post for a good overview of the process.
Happy coding,
Ken
Richard Duffy
16,488 PointsHey,
The forum uses markdown for showing code!
"```language_name_goes_here ```"
Ignore the double quotes.
It starts with three double ticks and ends with three back ticks.
.
Wayne Priestley
19,579 PointsHey Melissa,
Here is a link to explain how to use Markdown to post your code How to post code
If you look at the bottom of the box when your typing a reply you will see Markdown Cheatsheet that will also explain how to post your code.
Colin Bell
29,679 PointsColin Bell
29,679 PointsAlso, if you put the language of the code on the same line as the opening backticks. It will color code the format accordingly.
with js (.js, javascript, filename.js also work) after the three backticks
nothing after the three backticks