Skip to content

emanuelen5/Word-highlighter

Repository files navigation

Word highlighter for Sublime Text

Build Status codecov Donate using Liberapay Donate using Patreon

The plugin is used for highlighting/colorizing occurances of words or patterns. This can simplify reading unfamiliar code, make it possible to look at the code in a new way, or just make the code colorful.

It is inspired by the Emacs plugin highlight-symbol.

Usage

Highlight selection (word)

alt+k, h, w

Toggles highlights based on the current selection.

Recording of using the highlight selection command

  • If the selection has zero width, it is expanded to the word boundary and will only match at the same word boundary.
  • If the selection has non-zero width, the the whole selection will be matched irrespective of word boundaries.

Clear highlights

alt+k, h, c

Clears all highlights.

Clear highlights menu

alt+k, h, m, c

Get a list of all highlights and select which ones to clear from the view.

Edit regexp of selection

alt+k, h, e, r

Edit the selected highlight's regexp (under the cursor).

Edit regexp menu

alt+k, h, m, e, r

Edit the regexp for a highlighted by selecting from a menu (list of all highlights).

New highlight from regexp

alt+k, h, n, r

Create a new highlight by entering a regexp.

Edit highlight color

alt+k, h, e, h

Edit the selected highlight's color (under the cursor).

Settings

Setting name Default value Description
debounce 0.1 Maximum update rate of highlights when editing file [seconds]
color_picking_scheme CYCLIC The way to select the next color for the highlight. Any of the following: CYCLIC, CYCLIC_EVEN, CYCLIC_EVEN_ORDERED, RANDOM, RANDOM_EVEN.

Installation

Clone the repository and rename it to word_highlighter. Place it in the Sublime text Packages folder (Preferences -> Browse Packages...).

About

A Sublime text plugin for highlighting words

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages