Github Gists syntax highlight is not working

ⅰ亾dé卋堺 提交于 2019-12-23 06:58:43

问题


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.



来源:https://stackoverflow.com/questions/28561042/github-gists-syntax-highlight-is-not-working

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!