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 50K
  • Win 33K
  • OS X 9K
  • Linux 7K
Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31
Windows 10 11 19 21 25 21 18 19 14 9 14 23 25 25 26 13 14 15 19 36 29 26 15 14 27 24 23 26 32 16 15 20 16 26 30 29 17 11 25 30 26 34 23 16 15 18
OS X 2 5 1 3 10 7 4 4 2 4 5 6 4 8 6 3 5 4 9 8 2 6 3 3 1 6 6 5 8 2 4 5 8 4 3 6 0 3 9 1 6 9 9 3 2 2
Linux 2 5 6 3 10 4 5 3 3 2 5 4 5 2 7 4 4 2 7 3 8 5 3 2 4 8 5 5 8 2 4 3 6 8 2 6 0 4 5 9 5 12 6 2 3 7

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.

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]"
}