Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime MarkdownEditing plugin color scheme and line numbers

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

like image 254
ahsteele Avatar asked Aug 29 '14 21:08

ahsteele


2 Answers

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.

like image 145
culix Avatar answered Sep 25 '22 13:09

culix


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.

like image 38
maliayas Avatar answered Sep 24 '22 13:09

maliayas