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

how do you put codeblock into the forum post? I didn't see it in the markdown cheatsheet.

I have seen to add code put it with the 3 ticks but looking at the cheatsheet nor the actual document shows how to add the different color codeblock.

Do you just do the 3 ticks at the front and back?

3 Answers

yes just add the three ticks to the front and the end and just add what code it is

for example

<head>
<title>
This is a test
</title>
</head>```

Yeah, I figured it out, i was trying it earlier and didn't work.. but got it now.

like this?

var x = "Hello world!";

console.log(x);