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

HTML How to Make a Website Adding Pages to a Website Style New Pages

Armando Abrahamsson
Armando Abrahamsson
1,391 Points

How the hell do I include the code?

I've been checking out the different options on the forum. However, the "```" before and after including the code does not work for me. Nor does "<code></code>".

2 Answers

Wayne Priestley
Wayne Priestley
19,579 Points

Hey Armando,

Here is a link to explain how to use Markdown to post your code How to post code

If you look at the bottom of the box when your typing a reply you will see Markdown Cheatsheet that will also explain how to post your code.

You have to make sure you have a bit of space under your last line of text in your post. Then you add three back ticks followed by html or css depending on the type of code your inserting.
Then straight after your last line of code you add another three back ticks.
Remember to leave at least a few lines between any text at the top or bottom of your code.

alt text

Hope this helps.

Armando Abrahamsson
Armando Abrahamsson
1,391 Points

Aye I am aware, however I have tried that. Last time I was able to post a question a moderator changed my text, and said that there just seemed to be some issue with the spacing. However, he did not specify. Let me try and do the exact thing you are suggesting me.

Fingers crossed.

<p>John Doe</p>

Success!