DEV Community

Discussion on: From PHP to Go: Arrays

Collapse
asanchez profile image
Antonio Sánchez Author • Edited on

Titles 4, 5 and 6 are not being represented as titles. This must be a problem of dev.to, since the markdown is correct. I am sorry for the inconveniences and I hope someone from dev.to take a look at this.

Collapse
asanchez profile image
Antonio Sánchez Author • Edited on

Fixed. I hade to make sure the closing </pre> tag was in another line as the opening <pre> tag. I don't know why, but it is working like this.

Collapse
andy profile image
Andy Zhao (he/him)

Hey Antonio, we recommend using codeblocks like you would with Markdown in order to get the <pre> tag functionality. Here's an example:

Code block usage example

Including the language php after the first set of triple backticks will add syntax highlighting.

Hope that helps!

Thread Thread
asanchez profile image
Antonio Sánchez Author

Hi Andy, thanks a lot! I am not so experienced working with markdown. I will edit the post right now to do this.