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 get the black background design for the code we submit as answers ?

My stylings are not working ...i read the cheatsheet in treehouse but nothing is working <blockquote></blockquote> is not working and also the three backticks before and after the code are not working (including the language name)

Hi, Can you try posting an example and then I will be able to take a look at the editing view to see if I can spot what's going wrong.

11 Answers

<blockquote>

<p>doesnt work!</p>

</blockquote>

When I look at that it edit mode I can see that it is wrapped in blockquote tags.

Did you add those?

yes i added them

You have to put 3x backtick and then the language you want to use. And Close it with another 3 backticks.

It all depends on what Keyboard layout you use. On a german Keyboard the backtick is used with: SHIFT + (1 key left from the backspace).

As I see you are on the right track. Press the key 4 times and delete the last one, then write html -> press ENTER -> write your Code -> repeat the 4 key press and delete the last one -> and voila -> it worked.

Hi Nejc,

Lakindu does appear to be using the correct syntax, with the right backticks but his code is being wrapped in <blockquote> tags.

Any ideas what would cause that?

<blockquote>

<p>not working</p>

</blockquote>

Ok so the answer is to not include the blockquote tags.

<p> Working? </p>

It's working fine it seems.

Click on the Markdown Cheatsheet and copy/paste it.

NOO!!! i tried everything!!! i complainted the forum team also

<p>not working</p>

You also need to have at least 1 line of space between any text and the code.

            <p>This is code!</p>
            ```

MY GOODNESS....ok one more time! I am going to be a moderator soon..so i must fix this shit QUICK!

<p>Working?</p>

Nearly !

You just missed off the last backtick that time.

Yay !

<code>

<p>This is code!</p>

</code>

WPOHOOOO I DID IT!!! FUCK YEAH..THANKS GUYS LOVE YA btw im gonna do a big project ..a website actually so if anyone interested..please email me lakindu1.jayathilaka@gmail.com

I will contact you within a week of time

You should put ``` before and after the code, and to set the language put it next to the first backticks , so you go from this:

$(".slides").slick({
    slidesToShow: 4,
    slidesToScroll: 4,
    dots: true
});

To this:

$(".slides").slick({
    slidesToShow: 4,
    slidesToScroll: 4,
    dots: true
});