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
Shawn Flanigan
Courses Plus Student 15,815 PointsIncluding 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
Stone Preston
42,016 Pointsyou 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```
Wayne Priestley
19,579 PointsHi 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>
Shawn Flanigan
Courses Plus Student 15,815 PointsShawn Flanigan
Courses Plus Student 15,815 PointsThat'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.Shawn Flanigan
Courses Plus Student 15,815 PointsShawn Flanigan
Courses Plus Student 15,815 PointsNope. Just shows the backticks on my end. I wonder if it's a Safari problem?
Stone Preston
42,016 PointsStone Preston
42,016 Pointsits on my end too. it might be that you cant do html tags inline
Shawn Flanigan
Courses Plus Student 15,815 PointsShawn Flanigan
Courses Plus Student 15,815 PointsIs this
html <p>tag working? That's supposed to show a paragraph tag.Stone Preston
42,016 PointsStone Preston
42,016 Pointsyeah looks like it wont show html tags inline. hmm
Shawn Flanigan
Courses Plus Student 15,815 PointsShawn Flanigan
Courses Plus Student 15,815 PointsGlad I'm not crazy. That was allowed in the past, right?