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

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