0
Besvaret

file-type specific color-schemes

Allen A. Bargi 13 år siden opdateret af Jon Skinner 12 år siden 2
Just wondering is it possible to have a file-type specific color-schemes?  I would like to edit all the programming stuff in a dark color-scheme but for writing markdown files and latex files I do prefer to have a light color-scheme like "Dawn" 

Is it possible right now?

Svar

Svar
Besvaret
Yep - http://www.sublimetext.com/docs/2/settings.html describes how to do per-syntax settings
Svar
Besvaret
Yep - http://www.sublimetext.com/docs/2/settings.html describes how to do per-syntax settings

It does not mention the specific setting to use though. I find "Sunburst" best for Markdown so:


{<br>  "color_scheme": "Packages/Color Scheme - Default/Sunburst.tmTheme"<br>}
As a side note: Sunburst is about 95% perfect, it does not highlight blocks (~~~~~~~) like it does for `` so more tweaks are needed.

+1

you document of specific type, then go to Preferences -> Settings - More -> Syntax Specific - User.

then add 

"color_scheme": "Packages/Color Scheme - Default/Sunburst.tmTheme"
and you're done.
if you'de like some parts of your code colored differently you either need to adjust colors for that particluar scope inside scheme file, (if such scope exists) or you need to define the scope inside Markdown.tmLanguage and then map a color to that scope inside your scheme file.

If you'd like to find out the name of the scope you're after, you can use this package https://github.com/facelessuser/ScopeHunter

Kundesupport af UserEcho