12
votes

I like to utilize Markdown for a lot of the text that I write. To that end I wanted to try out the MarkdownEditing plugin for Sublime Text 3, but am having some user experience issues:

  1. I cannot figure out how to change the color scheme such that it affects the MarkdownEditing syntax editor. Changes to .Packages\User\Preferences.sublime-settings do not effect display settings when in this syntax highlighting mode. However, those changes are reflected in other tabs. How do I change the color scheme when making use of the MarkdownEditing syntax highlighting?

  2. How do I turn on line numbers when making use of this syntax plugin?

screenshot of drab grey

4
As I've done in the past, +1 for MSPaint-ish handwriting. I, sadly, have nothing constructive to add. - admdrew
This is documented in the configuration section. Please help developers by reading them. - maliayas
@maliayas I did read the documentation section and the instructions didn't work hence the question here. I'm big on helping myself before asking others. - ahsteele
@ahsteele Ok, no problem. If you see something to improve in the docs, PR welcome. - maliayas

4 Answers

15
votes

TL;DR

If you are using Markdown GFM syntax, open/create "Data/Packages/User/Markdown.sublime-settings" and add:

{
    "color_scheme": "Packages/your/custom.tmTheme",
    "line_numbers": true
}

See menu: Preferences > Package Settings > MarkdownEditing.

There are 3 different settings there for 3 different syntaxes. First check what "default" settings does and then undo it in "user" settings.

6
votes

To stop the MarkdownEditing package from overriding your color scheme on Markdown files:

  1. Open Preferences > Settings - User
  2. Find your color_scheme line - e.g. it looks like
    "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
  3. Copy the entire line
  4. Open Preferences > Package Settings > Markdown Editing > Markdown GFM Settings - Default
  5. Comment out the other color_scheme lines by adding // in front of them
  6. Paste your line instead
  7. Save the file

Markdown files will now use your regular color scheme rather than using their own scheme just for .md files.

If you get an error about "Error trying to parse settings", make sure your line ends with a , if there are lines below it, and does not end with , if it is the last line.

3
votes

This was one of the most annoying things about this plugin when I installed it a while back, so I promptly got rid of it. However, before doing so, I figured out how to solve your problems. First, since you're using ST3, you'll need to install the quite-useful PackageResourceViewer plugin. Open the Command Palette (CtrlShiftP on Windows), type in prv to bring up the PackageResourceViewer options, and select Extract Package. Scroll down and select MarkdownEditing, hit Enter, and you're all set. You can now open Packages/MarkdownEditing (Packages should be in C:\Users\username\AppData\Roaming\Sublime Text 3, also available by selecting Preferences -> Browse Packages...) in the sidebar and browse through all the different .sublime-settings files for the different syntaxes and for the main plugin, changing things as you want. The syntax-specific files use all the same options found in Preferences -> Settings-Default, so for example you can set "line_numbers": true to turn line numbering back on, and change the value of "color_scheme" to your preferred value.

0
votes

I had another packaged named Markdownlight which was overriding the color scheme. I had to uninstall it before the color_scheme in the MarkdownEditing user settings took affect.