How to post code snippets?
-
The Markdown docs say to use triple back ticks. This does work, but the code
looks
like
this
Other posts have the code on a solid blue background with out gaps between the lines. How is this done?
-
Like this?
```javascript console.log('hello world'); ```
-
console.log('This is a test');
-
Thanks @avdg_ your post clued me in. I was only using the back ticks and so getting a generic code post. Adding the language qualifier solved the problem.
-
console.log("you're welcome");