14

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,674
  • 1
  • 25
  • 42

3 Answers3

24

You need to change the file extension to .md

Here's my fork of your gist

Swaraj Giri
  • 3,889
  • 2
  • 22
  • 40
7

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

SmileBot
  • 19,187
  • 7
  • 62
  • 62
5

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,674
  • 1
  • 25
  • 42