ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Highlighter

by bluegray ST2/ST3

Sublime Text plugin to highlight any sequence of characters. Highlights mixed tabs and spaces, some unicode characters and trailing space by default.

Labels formatting

Details

Installs

  • Total 41K
  • Win 27K
  • OS X 8K
  • Linux 6K
Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30
Windows 25 28 28 23 12 18 15 33 29 24 23 10 21 24 29 28 29 31 13 14 19 26 23 36 30 14 21 24 24 27 29 37 17 25 28 29 24 28 43 16 18 36 18 24 15 26
OS X 8 9 5 12 6 3 4 6 4 4 7 1 3 3 7 3 13 5 4 4 5 4 4 10 12 7 8 8 4 11 9 5 3 4 4 8 2 5 5 5 5 8 7 11 5 5
Linux 5 5 4 6 2 2 1 9 1 6 8 2 5 7 4 4 4 5 4 3 7 9 3 3 3 2 3 6 5 4 4 3 6 11 7 12 8 2 4 5 3 3 1 4 7 5

Readme

Source
raw.​githubusercontent.​com

Highlighter

A plugin for Sublime Text (ST2 and ST3) to highlight mixed tabs and spaces, some unicode characters and trailing space.

Highlighter Screenshot

Additional highlighted characters

These characters are highlighted by default:
U+2026 Horizontal ellipsis
U+2018 Left single quotation mark
U+2019 Right single quotation mark
U+201c Left double quotation mark
U+201d Right double quotation mark
U+2013 En dash
U+2014 Em dash
U+00a0 Non-breaking space

Key bindings

Ctrl+Alt+Shift+h : Toggle highlighting on/off.

Menu commands

You can toggle highlighting in the View menu. The setting is per view, and not saved to disk. This can be changed in the settings, see below.

Configuration

You can override the default settings by creating a file in Packages/User/highlighter.sublime-settings: Check the default highlighter.sublime-settings file for available settings.

Syntax ignore

You can add a list of syntaxes to ignore with the following setting:

{
  "highlighter_syntax_ignore": ["Python", "PHP"]
}

Save toggled state

To persist the toggled state to disk, set the following to true:

{
  "highlighter_save_settings_on_change": true
}

Custom regex

You can customise the regex to highlight:

highlighter_regex <- Matching characters highlighted with fill and outline
highlighter_regex_cool <- Matching characters highlighted with stippled underline

{
  "highlighter_regex": "(\t+ +(?![*]))|( +\t+)|([\t ]+$)",
  "highlighter_regex_cool": "[\u2026\u2018\u2019\u201c\u201d\u2013\u2014\u00a0]"
}