The short answer to your question is that the language you want is
'Packages/Markdown/Markdown.sublime-syntax' (if you’re running an older version of Sublime and that doesn’t work, replace
The longer answer to your question is that there are three different places that packages exist in Sublime:
- In the
Packages folder, which you can get to by selecting
Preferences > Browse Packages... from the menu
- In the
Installed Packages folder, which you can get to by performing the steps in #1 and then going up one directory level in the file browser
- In a folder alongside wherever Sublime is currently installed.
For #1, the packages are stored unpacked in folders based on their names. The only definite package you’re ever going to see there is the
User package, which holds your own custom configurations to Sublime. Aside of that, it’s possible that you may see a few packages there or none at all.
For #2 and #3, the packages are stored as
sublime-package files, which are just
zip files with a different extension. Being archives, searching for files within them doesn’t generally work.
The packges in
Installed Packages are third party packages installed by you (or rather, Package Control in most cases), which installs almost all packages there. The only exceptions to that are packages that need to be “unpacked” into the
Packages folder (#1) because they contain files that items outside of Sublime need to access, such as a library or binary.
Markdown is one of the packages that ship with Sublime, so you won’t find it in
Installed Packages and instead alongside the binary.
If you’re running a recent development build of Sublime, you can get a list of all package files by using the new
View Package File command in the command palette; selecting that command and entering the text
markdown will filter the list to all files with that name, which will point at the file that you want (for me it’s the first item in the list).
If you’re not using a recent version (or really, even if you are), an indispensable tool in your toolbox would be PackageResourceViewer. If you install that, you can select
PackageResourceViewer: Open Resource from the command palette, then browse through package files and open them.
One last thing to note is that knowing that
sublime-package files are just
zip files comes with a strong compulsion to unpack them, modify the contents, and pack them again. You should avoid that compulsion at all cost because upgrades to packages are done by replacing the package as a whole, so your changes will mysteriously vanish into the ether at some point if you do that.