Sublime Forum

Notes on Python in Sublime

#1

I am learning Python for the first time and would like to keep some notes in a markdown file. I am using `` and ``` to mark snippets of code. I wondered if there was a way to show the code in a way that looks more naturally like python code without too much tweaking. My theme is currently Mariana. In markdown now code snippets are all in a dull grey. I am currently using the MarkdownExtended package.

0 Likes

#2

Markdown lets you specify the language after: ```python. This is supported by the built-in markdown syntax.

1 Like

#3

Thank you. That was super helpful. I had to install a different markdown package to get it to work properly, namely, MarkdownEditing. Not sure why.

0 Likes

#4

Shipped Markdown syntax should handle python syntax well.

MarkdownEditing’s Markdown syntax is basically just a “little” extension as of ST413x, which provides support for some more 3rd-party syntaxes in fenced code blocks.

1 Like