Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Explanation on how to use the diff.properties configuration added

  • Loading branch information...
commit 7da26e67a03261eb30b99981e2491c9024a91a42 1 parent cda3025
Paolo authored

Showing 1 changed file with 23 additions and 0 deletions. Show diff stats Hide diff stats

  1. +23 0 README.md
23 README.md
Source Rendered
@@ -55,6 +55,29 @@ __Diff__
55 55
56 56 ![PHP sample](https://github.com/paololus/NetBeans-Custom-Themes/raw/master/samples/Zenburned/zenburned-diff.png)
57 57
  58 +## Diff colors
  59 +
  60 +Unfortunately as of now NetBeans does not store the configuration of the colors for the diff in the same way and place
  61 +it does for the others.
  62 +As far as I know this configuration is stored in the file `diff.properties` which can be found at the following sample location
  63 +`~/.netbeans/7.1/config/Preferences/org/netbeans/modules/diff.properties` (_7.1_ being the version of NetBeans in my case on a GNU/Linux system).
  64 +Also note that the colors for the diff are global, meaning that they will be applied indipendently from the active theme you have.
  65 +
  66 +### How-to apply the diff colors
  67 +
  68 +The following procedure worked for me. I hope it will work for you too (let me know if it does not).
  69 +
  70 +1. __Back up the original file__:
  71 +
  72 + `cd ~/.netbeans/<YOUR NB VERSION>/config/Preferences/org/netbeans/modules/`
  73 + `mv diff.properties diff.properties.bak`
  74 +
  75 +2. __Replace the original file with the one provided with the theme (only for Zenburned for now)__:
  76 +
  77 + `cp /path/to/new/diff.properties ~/.netbeans/<YOUR NB VERSION>/config/Preferences/org/netbeans/modules/diff.properties`
  78 +
  79 +3. __Try it!__: the next diff you'll do should use the new colors. In any case restarting the IDE won't hurt.
  80 +
58 81 ## Disclaimer
59 82 Each one of these themes is provided "AS IS".
60 83 Use them at your own risk, do whatever you want and be happy =)

0 comments on commit 7da26e6

Please sign in to comment.
Something went wrong with that request. Please try again.