Skip to content

Instantly share code, notes, and snippets.

@darnocer
Last active April 2, 2023 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darnocer/dc2b8df69a10f0cf2f3067de157c0757 to your computer and use it in GitHub Desktop.
Save darnocer/dc2b8df69a10f0cf2f3067de157c0757 to your computer and use it in GitHub Desktop.
Code Syntax Highlighting by Language in Markdown

Color Highlighting Code Syntax in Markdown

To add syntax color highlighting to your codeblock in markdown, specify the language or its alias after the first ```.

Example

```html
<body>
<h1>Hello World!</h1>
</body>
```

Output

<body>
<h1>Hello World!</h1>
</body>

Supported languages:

  • js, css, md, bash, and more.
  • graphql works well for file tres

🔹 See All Supported Languages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment