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 trialAbdullahi Abdinasir Ali
9,520 PointsHow do I attach the code if am answering some else quiz in community
How do i answer with code to show the answer . I have no clue . Please any guide
3 Answers
Lee Torson
8,694 PointsYou can find these answers in the Markdown Cheatsheet below this comment:
Code Wrap your code with 3 backticks (```) on the line before and after. If you specify the language after the first set of backticks, that'll help us with syntax highlighting.
Is this what you mean?
Christopher De Lette
Courses Plus Student 7,139 PointsI simply copy the code from the previous question/comment and add the Markdown syntax for code formatting. Hope i understood your question and if so hope this helps. If any knows a different please comment.
Take care!
Katie Wood
19,141 PointsHey there,
If you want to show a code snippet to answer someone's question, you can use three ` (backtick) characters to start and end your snippet. If you want appropriate text highlighting for the language, you can also specify the language after your starting backticks. If you're typing out an answer, there's a link to a Markdown Cheatsheet underneath the text area - there, you can see a bunch of formatting options for your answers.
When you're typing, it'll look something like the following - you'll need to replace the apostrophes with backticks (same key as ~).
'''html
<h1>Here's My Snippet</h1>
'''
When you replace the apostrophes (') with backticks(`), it looks like:
<h1>Here's My Snippet</h1>
Hope this helps!