Skip to content

Instantly share code, notes, and snippets.

@buhrmi
Created November 7, 2011 10:51
Show Gist options
  • Select an option

  • Save buhrmi/1344659 to your computer and use it in GitHub Desktop.

Select an option

Save buhrmi/1344659 to your computer and use it in GitHub Desktop.
Sublime Text 2 Git Annotation Colors
<dict>
<key>name</key>
<string>Git Modified Line</string>
<key>scope</key>
<string>git.changes.x</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#272852</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Git Added Line</string>
<key>scope</key>
<string>git.changes.+</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#275822</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Git Remove Line</string>
<key>scope</key>
<string>git.changes.-</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#A72822</string>
</dict>
</dict>
@A5308Y

A5308Y commented May 30, 2013

Copy link
Copy Markdown

Thanks for including that gist!

@Kaligule

Copy link
Copy Markdown

Where am I supposed to paste that? I tried to append it to my current theme file, but nothing happend. Could you explain me where to put it?

@degzcs

degzcs commented Mar 12, 2014

Copy link
Copy Markdown

I have the same problem.... so Where am I supposed to paste that?

@Chekote

Chekote commented Mar 20, 2014

Copy link
Copy Markdown

You need to paste this into the tmTheme file for whatever theme you are using. On Mac, the theme files are located in ~/Library/Sublime Text 2/Packages/Color Scheme - Default/

@nrser

nrser commented Jun 2, 2014

Copy link
Copy Markdown

could you be a little more clear? or provide a full Monokai.tmTheme file as an example? i pasted the above into

~/Library/Application Support/Sublime Text 2/Packages/Color Scheme - Default/Monokai.tmTheme

in the settings array like so:

and am still only seeing little white dots next to lines, no nice colors :/

@valscion

valscion commented Jun 2, 2014

Copy link
Copy Markdown

@nrser, try this: https://sublime.wbond.net/packages/PackageResourceViewer It seems promising. I managed to change the removed line mark colour with it on Sublime Text 3.

@jonnypolite

Copy link
Copy Markdown

Yeah I can't get this to work. Did anyone on this thread figure it out?

@jonnypolite

Copy link
Copy Markdown

Nevermind, for anyone else experiencing this issue I recommend installing the GitGutter sublime package. Takes care of the annotation stuff without any fuss.

@knxroot

knxroot commented Jul 28, 2016

Copy link
Copy Markdown

Try using my fork https://gist.github.com/knxroot/faa0e3b2d763feee1348af45ab2473ad add before < / array> in your .tmTheme file. This work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment