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 trialShawn Denham
Python Development Techdegree Student 17,801 Pointstrying to get code formatting working
nav {
display: none;
width: 100%;
background: #000;
margin-left: -20px;
padding-right: 40px;
}
5 Answers
Shawn Denham
Python Development Techdegree Student 17,801 Pointsgot it :)
Christopher Peters
1,927 Points@shawn denham, you can also do inline code formatting by using backticks. Don't confuse these with apostrophes though! The button is usually in the very upper left corner of the keyboard (mine is below the escape button and is the same button as the tilde ~). Whatever you put between two backticks should become inline code. Like this!
Shawn Denham
Python Development Techdegree Student 17,801 PointsThanks Chris!
The back ticks were the only thing I could actually get working.
Shawn Denham
Python Development Techdegree Student 17,801 Pointscode bracket test
<code> nav { display: none; width: 100%; background: #000; margin-left: -20px; padding-right: 40px; } </code>
Shawn Denham
Python Development Techdegree Student 17,801 Pointsfail :(
James Barnett
39,199 PointsTreehouse uses markdown, as such no tags such as <code>
will work.
Here's a handy guide to the various ways to format code here on the forum.
Shawn Denham
Python Development Techdegree Student 17,801 PointsThanks James! not sure where I got the idea that I could wrap it in <code></code>
tags
Shawn Denham
Python Development Techdegree Student 17,801 Pointshtml
<div>
<p>my paragraph</p>
css
body {
font-family: Verdana;
font-size: 2em;
margin: 10px;
}
James Barnett
39,199 PointsYou need a blank between above the backticks to get the syntax highlighting correctly for the CSS.
Shawn Denham
Python Development Techdegree Student 17,801 PointsJames Barnett is there a list of supported languages for the syntax highlighting?
James Barnett
39,199 PointsIf I had to guess I'd say http://pygments.org/languages/ did I get that right Sean Gaffney?
Shawn Denham
Python Development Techdegree Student 17,801 Pointsawesome! thanks!
Sean Gaffney
Front End Web Development Techdegree Student 2,560 PointsJames Barnett, yup! We're using Pygments, so we should support all those languages, but I can't really promise that all of them work.
James Barnett
39,199 PointsJames Barnett
39,199 Points