To make your code snippets look pretty you can use standard markdown formatting with backticks. This approach is commonly used in GitHub, Slack, Stack Overflow, Jira and many other websites for programmers.

For inline highlighting like console.log you can use single backticks:


For dedicated code snippets you can use triple backticks. It’s essential to place triple backticks on separate lines before and after your code.

console.log('hello, world!');

Which will render the following output:

console.log('hello, world!');