<commit_before>Trailing Spaces
===============

A [Sublime Text 2](http://www.sublimetext.com/2) and
[3](http://www.sublimetext.com/3) plugin that allows you to…

**highlight trailing spaces and delete them in a flash!**

---

- [Synopsis](#synopsis)
- [Installation](#installation)
	- [Alternative installation methods](#alternative-installation-methods)
		- [From github](#from-github)
		- [Manually](#manually)
- [Usage](#usage)
	- [Deletion](#deletion)
	- [Toggling highlighting](#toggling-highlighting)
- [Options](#options)
	- [Changing the highlighting color](#changing-the-highlighting-color)
	- [Keeping trailing spaces invisible](#keeping-trailing-spaces-invisible)
	- [Include Current Line](#include-current-line)
	- [Include Empty Lines](#include-empty-lines)
	- [Modified Lines Only](#modified-lines-only)
	- [Trim On Save](#trim-on-save)
	- [Save After Trim](#save-after-trim)
	- [Live Matching vs On-demand Matching](#live-matching-vs-on-demand-matching)
	- [Ignore Syntax](#ignore-syntax)
	- [For power-users only!](#for-power-users-only)
		- [Disabled for large files](#disabled-for-large-files)
		- [The matching pattern](#the-matching-pattern)
- [About Sublime Text's built-in features](#about-sublime-texts-built-in-features)

Synopsis
--------

Sublime Text provides a way to automate deletion of trailing spaces *upon file
saving* (more on this at the end of this file). Depending on your settings, it
may be more handy to just highlight them and/or delete them by hand, at any
time. This plugin provides just that, and a *lot* of options to fine-tune the
way you want to decimate trailing spaces.

Installation
------------

It is available through
[Sublime Package Contol](http://wbond.net/sublime_packages/package_control) and
this is the recommended way of installation (brings configuration instructions,
automatic updates with changelogs…).

### Alternative installation methods

#### From github

You can install from github if you want, although Package Control automates
just that. Go to your `Packages` subdirectory under ST2's data directory:

* Windows: `%APPDATA%\Sublime Text 2`
* OS X: `~/Library/Application Support/Sublime Text 2`
* Linux: `~/.config/sublime-text-2`
* Portable Installation: `Sublime Text 2/Data`

Then clone this repository:

    git clone git://github.com/SublimeText/TrailingSpaces.git

#### Manually

[Download](https://github.com/SublimeText/TrailingSpaces/archive/master.zip)
the plugin as a zip. Copy the *Trailing Spaces* directory to its location
(see prior section).<commit_msg>fixing a typo<commit_after>Trailing Spaces
===============

A [Sublime Text 2](http://www.sublimetext.com/2) and
[3](http://www.sublimetext.com/3) plugin that allows you to…

**highlight trailing spaces and delete them in a flash!**

---

- [Synopsis](#synopsis)
- [Installation](#installation)
	- [Alternative installation methods](#alternative-installation-methods)
		- [From github](#from-github)
		- [Manually](#manually)
- [Usage](#usage)
	- [Deletion](#deletion)
	- [Toggling highlighting](#toggling-highlighting)
- [Options](#options)
	- [Changing the highlighting color](#changing-the-highlighting-color)
	- [Keeping trailing spaces invisible](#keeping-trailing-spaces-invisible)
	- [Include Current Line](#include-current-line)
	- [Include Empty Lines](#include-empty-lines)
	- [Modified Lines Only](#modified-lines-only)
	- [Trim On Save](#trim-on-save)
	- [Save After Trim](#save-after-trim)
	- [Live Matching vs On-demand Matching](#live-matching-vs-on-demand-matching)
	- [Ignore Syntax](#ignore-syntax)
	- [For power-users only!](#for-power-users-only)
		- [Disabled for large files](#disabled-for-large-files)
		- [The matching pattern](#the-matching-pattern)
- [About Sublime Text's built-in features](#about-sublime-texts-built-in-features)

Synopsis
--------

Sublime Text provides a way to automate deletion of trailing spaces *upon file
saving* (more on this at the end of this file). Depending on your settings, it
may be more handy to just highlight them and/or delete them by hand, at any
time. This plugin provides just that, and a *lot* of options to fine-tune the
way you want to decimate trailing spaces.

Installation
------------

It is available through
[Sublime Package Control](http://wbond.net/sublime_packages/package_control) and
this is the recommended way of installation (brings configuration instructions,
automatic updates with changelogs…).

### Alternative installation methods

#### From github

You can install from github if you want, although Package Control automates
just that. Go to your `Packages` subdirectory under ST2's data directory:

* Windows: `%APPDATA%\Sublime Text 2`
* OS X: `~/Library/Application Support/Sublime Text 2`
* Linux: `~/.config/sublime-text-2`
* Portable Installation: `Sublime Text 2/Data`

Then clone this repository:

    git clone git://github.com/SublimeText/TrailingSpaces.git

#### Manually

[Download](https://github.com/SublimeText/TrailingSpaces/archive/master.zip)
the plugin as a zip. Copy the *Trailing Spaces* directory to its location
(see prior section).
{'fraction_non_alphanumeric': 0.1359795637649833, 'fraction_numerical': 0.0035370406759677735, 'mean_word_length': 4.687150837988827, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3034750', 'n_tokens_mistral': 1654, 'n_tokens_neox': 1523, 'n_words': 477}