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!
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
how to post a snapshot of my code?
I've been having the occasional issue when writing "large" amounts of code while doing challenges, in that I dont know how I can take a nice screenshot of it to post to these forums for review. So far, every time i have an issue I have to copy and paste all of my code into the 'question' box and in the process all the formatting is lost.
Is there a better way?
Ryan S27,276 Points
Take a look at the Markdown Cheatsheet, which is linked to at the bottom of the question, answer, and comment boxes. It provides some basic formatting syntax to help you post your code.
Another option is to go through the Markdown Basics course.
For posting code, you copy and paste it directly from your text editor or from the challenge itself. Then surround it by 3 backticks (not apostrophes). You can also add the name of the language to get syntax highlighting.
Will show up as:
You can also click on the preview button (in the bottom right corner of the text box) to see what it will look like before submitting.
Hope this helps.
Thanks! that was really helpful!