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

trouble putting codes in answer in Community

Hello,

I can't seem to put codes in answer with out them disappearing when I submit. Also I see people put pictures of codes to help others.

My question... How do I put codes and pictures of codes without them disappearing?

//example
//jason was here

4 Answers

Click the link below the "Add an Answer" box that says Markdown Cheatsheet. This will example how you add code blocks to the Community form.

If you don't want to look through the whole markdown sheet, start your code with

'```' then next line code code code

'```' in the last line after all the code

You mean this?

```javascript

var code = "Im coding"; // I don't do JS, so this code might be wrong.

```

This would output:

var code = "Im coding";
// I don't do JS, so this code might be wrong.

the button next to the 1 on your left. tap it 3 times to open and close it tap it 3 times.

 <html></html>
<body></body>