Github Gists syntax highlight is not working

2019-06-15 02:35发布

问题:

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.

回答1:

You need to change the file extension to .md

Here's my fork of your gist



回答2:

You have to add an extension for your language. Add .py not .md if you want python highlighting.



回答3:

Here's the solution:

You need to place a proper file extension for the filename you are trying to save, for example

Python RegEx

should become

Python RegEx.md

Spaces are ignored.



标签: github gist