Hi folks!
Just enabled “Jetpack”… Jetpack Comment… and MARKDOWN on this blog.
WHAT THIS MEANS FOR YOU
You can now enter properly formatted code in comments! YES!
Or at least I’m led to believe this, heh. I shall try this as replies to this post.
HERE’S HOW:
- Enter three backticks ( ``` ) BEFORE and AFTER your code block, OR
- Wrap your code block with the HTML tags <pre> and </pre>
That should do it! Please do check out the replies to this post.
Here’s another example, but using “markdown” syntax. Go google it!
(And for the impatient đŸ™‚ here’s the Markdown basics from GitHub.)
The special character you need to know about is the “grave accent“, described as follows:
The backtick character often found above the ‘tab’ key on many US-layout keyboards.
HOW TO USE IT FOR CODE
Enter triple backticks (```) before and after your multi-line code fragment. Here is an example!