Skip to content

Xaelias/HighlightDuplicates

 
 

Repository files navigation

Highlight Duplicates

Highlight duplicated lines. This is a Sublime Text 2 plugin.

Installation

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!

Options

Some options are available to customize the plugin look 'n feel. The config keys goes into config files accessible throught the "Preferences" menu.

Change the highlighting color

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.

Enable or disable the plugin

If needed, you can enable or disable the plugin with the following option:

{ "highlight_duplicates_enabled" : true }
// or
{ "highlight_duplicates_enabled" : false }

Run it

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.

About

Highlight duplicated lines in SublimeText 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%