I am trying to create a gist with Markdown syntax highlight. Unfortunately can't post a screenshot here.
Then I press 'save' and get no syntax highlight applied. The same issue is there with Python code.
For multiple click the start point, then shift + click the last line for the area highlight.
You can also create a Markdown hyperlink by highlighting the text and using the keyboard shortcut Command + V .
To highlight code, write the name of the language the code is written in after the initial triple backticks. In the above example, the code is written in JavaScript, and hence javascript is added after triple backticks.
We use Linguist to perform language detection and to select third-party grammars for syntax highlighting.
You need to change the file extension to .md
Here's my fork of your gist
You have to add an extension for your language. Add .py not .md if you want python highlighting.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With