15

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.

Igor
  • 2,834
  • 2
  • 26
  • 44

3 Answers3

25

You need to change the file extension to .md

Here's my fork of your gist

Swaraj Giri
  • 4,007
  • 2
  • 27
  • 44
7

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

SmileBot
  • 19,393
  • 7
  • 65
  • 62
6

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.

Igor
  • 2,834
  • 2
  • 26
  • 44