DEV Community

Discussion on: From PHP to Go: Arrays

Collapse
 
asanchez profile image
Antonio Sánchez • Edited

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

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