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

Probems with markup in answers, comments and questions.

I would greatly appreciate it if the markup cheatsheet got fixed since adding markup to an answer or comment or even a question is practically impossible without a rat nests of >br< elements and other finicky tricks. <br> The code block with ``` is simply redundant since it does nothing but change font. It doesn't even change the span color of the code block nor does it allow multiple line breaks. <br> Support for html elements like <p> <h1> <span> etc in code blocks are non-existant too however markup cheatsheet notes otherwise. The html seem to be strip_tags()-ed away so this is also just redundant. <br> Line breaks are non-existant. Only >br< works. <br> Pretty much the only markup that actually works are the bold and italic markups. <br> If I can't even apply acceptable markup to comments, answers and questions it will be a pain in the ass to try to keep my comments and answers readable and pleasant to the eyes. I am willing to support this forum community and help people out, however not like this. Most people wouldn't even understand me if I cannot write codeblocks. All these small things really aren't hard to implement/change nor does it have any form of security risks or holes. <br> Greetings, <br> shadryck

1 Answer

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,863 Points

Actually doing mark down is relatively simple in the forums, the only thing that gets complicated is putting HTML tags into your sentence without using HTML entities.

A. For your line-break issue, it's just a matter of hitting enter twice. None of my line breaks use the <br> tag.

B. To write a code block... after you have finished typing your questions/explanation or other plain text

i. Hit enter twice

ii. use 3 back ticks followed by the programing language name (NO spaces)

iii. Write/Paste your code

iv. Hit Enter

v. Close the block with 3 more back ticks

This can be done as many times as you need for your blocks.

<!DOCTYPE html>
     <html>
     </html>
var js = "JavaScript Here"

C. To do inline code in your typing (with the exception of HTML tags), you just surround the code with a single back tick. So if you wanted to show that var code = "inline", you can.

I hope this helps and makes your participation in the forums more comfortable. :)

code block test;

<h1>Leprechauns</h1>

inline-code block test;

what is the exchange rate between leprechauns and unicorns?

I think the problem of code blocks not taking effect was that I didnt use 2 linebreaks but forced it with >br< . For some reason I never managed to get the line breaks to work but it indeed does work correctly with 2 regular line breaks. However I still have to say I find it to be very counter-intuitive since you cant simply go down one line instead 2. There isn't always need for a new paragraph.

Anyhow thank you for your time.

Have a nice day,

shadryck

Here as example, there is just no need for a line break between the paragraphs "Have a nice day," and "shadryck", its even quite ugly and aesthetically displeasing haha.