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

kevinkrato
kevinkrato
5,452 Points

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?

1 Answer

Ryan S
Ryan S
27,276 Points

Hi Kevin,

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.

Eg.

```python

print("Hello World")

```

Will show up as:

print("Hello World")

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.

kevinkrato
kevinkrato
5,452 Points

Thanks! that was really helpful!