Highlight duplicated lines. This is a Sublime Text 2 plugin.
Go to your Packages
subdirectory under ST2's data directory:
- Windows:
%APPDATA%\Sublime Text 2
- OS X:
~/Library/Application Support/Sublime Text 2/Packages
- Linux:
~/.config/sublime-text-2
- Portable Installation:
Sublime Text 2/Data
Then clone this repository:
git clone git://github.com/qur2/HighlightDuplicates.git
That's it!
Some options are available to customize the plugin look 'n feel. The config keys goes into config files accessible throught the "Preferences" menu.
The highlighting color can be changed by providing a scope name such as "invalid", "comment"... in "File Settings - User":
{ "highlight_duplicates_color": "invalid" }
"invalid" is the default value. If you'd like to use a custom color, it should be defined as a color scope in your theme file.
If needed, you can enable or disable the plugin with the following option:
{ "highlight_duplicates_enabled" : true }
// or
{ "highlight_duplicates_enabled" : false }
As soon as it's installed, it's working. Then, you can toggle the highlighting with Tools > Command Palette
(command + shift + p on OSX) and start typing duplicates
. Select the command in the list and hit enter.