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

sandro mirijanashvili
sandro mirijanashvili
2,686 Points

How to share Challenge code ?

I see when people share challenge and ask question or answer it. How to do it ?

2 Answers

The best way is upon being on a challenge, to click on the "Get help" button right above the work space. There when submitting the help request, you have an option "Include my code", which will include the current code you have written there.

sandro mirijanashvili
sandro mirijanashvili
2,686 Points

but i don't want to upload question i want to respond another person's question

To post code in a formatted way, you can add ```[language] and ``` around your code.

Example:

Let's say I want to post come HTML into a comment. I have to add ```html and ``` around the code.

```html

<h1>Hello there!</h1>

```

The code above will output this when posted:

<h1>Hello there!</h1>

If this doesn't make much sense, you can always click the Markdown Cheatsheet right below any answer-box area.

I hope this helps :)

Good luck! ~Alex