Github Gists syntax highlight is not working

2019-06-15 01:49发布

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.

标签: github gist
3条回答
爷、活的狠高调
2楼-- · 2019-06-15 02:23

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.

查看更多
可以哭但决不认输i
3楼-- · 2019-06-15 02:34

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

查看更多
对你真心纯属浪费
4楼-- · 2019-06-15 02:37

You need to change the file extension to .md

Here's my fork of your gist

查看更多
登录 后发表回答