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