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 47K
  • Win 31K
  • OS X 9K
  • Linux 7K
Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7
Windows 20 21 27 21 11 7 19 21 25 29 22 12 22 25 11 40 31 32 18 16 22 27 25 23 22 18 12 10 17 28 28 30 17 19 28 28 26 31 28 15 12 21 35 39 39 21
OS X 6 9 8 6 5 2 5 7 8 2 2 0 5 5 0 8 9 9 1 8 8 8 7 3 2 4 1 10 11 3 14 6 6 1 6 10 7 8 6 0 1 2 4 6 4 9
Linux 4 8 4 8 3 2 6 3 6 3 5 0 1 5 2 7 4 12 3 5 5 3 8 2 4 5 0 2 3 4 3 5 3 6 7 7 7 4 7 4 4 3 4 3 9 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.

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