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

Including Inline Code No Longer Supported?

In the forums, I used to be able to include short code snippets in the middle of a sentence (I don't always want to open a code block on a new line...sometimes it's just messy and unnecessary). When I try to do this now, it doesn't seem to work. Has the system changed? Am I missing something?

Thanks!

2 Answers

you can include it inline by including 3 backticks before and after the code you want like this: this is an inline code block

actually looking at it now you only need one backtick before and after this is a code block using one backtick before and after

see below for what it needs to look like

inline code: `this is an inline code block`
this also works: ```this is an inline code block```

That's what I'd done in the past, but it hasn't been working for me the last few days. I'll try again and see if I can display a <p> tag in the middle of this sentence.

Nope. Just shows the backticks on my end. I wonder if it's a Safari problem?

its on my end too. it might be that you cant do html tags inline

Is this html <p> tag working? That's supposed to show a paragraph tag.

yeah looks like it wont show html tags inline. hmm

Glad I'm not crazy. That was allowed in the past, right?

Hi Guys,

This was bugging me too, don't know what changed but it works if you type html but if you include the < and > you get this <html>