https://github.com/mandx/sublimeautosoftwrap
SublimeText 2/3 to auto enable "Word Wrap" only for certain extensions
https://github.com/mandx/sublimeautosoftwrap
Last synced: 9 months ago
JSON representation
SublimeText 2/3 to auto enable "Word Wrap" only for certain extensions
- Host: GitHub
- URL: https://github.com/mandx/sublimeautosoftwrap
- Owner: mandx
- Created: 2013-07-10T04:42:29.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-07-10T13:49:49.000Z (almost 13 years ago)
- Last Synced: 2025-02-01T08:46:14.370Z (over 1 year ago)
- Language: Python
- Size: 109 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
AutoSoftWrap
============
SublimeText 2/3 to auto enable "Word Wrap" only for certain extensions
Description
-----------
AutoSoftWrap is a plugin for Sublime Text 2 and 3 that when enabled, every time a new buffer is loaded, and the filename extension is listed in the plugin settings, automatically enables `View -> Word Wrap`. This is mostly useful when viewing/editing lightweight markup languages like [Markdown](http://daringfireball.net/projects/markdown/).
Really useful when reading documentation maintained inside code repositories, but enabling `Word Wrap` globally is not desirable.
Installation
------------
AutoSoftWrap can be installed in a variety of ways:
* Using [Package Control](http://wbond.net/sublime_packages/package_control)
Open Package Control
Select 'Install Package'
Find and select 'AutoSoftWrap'
* By cloning this repository in Packages
cd into your Packages folder
git clone https://github.com/mandx/SublimeAutoSoftWrap.git .
Configuration
-------------
Right now there's only one setting to configure AutoSoftWrap `extensions`: It's a list of extensions to check when a file is first loaded, and if it matches one on this list, then `Word Wrap` is automatically enabled.
By default the default extension list is set to:
{
"extensions": [
"markdown", "mdown", "md",
"textile", "rdoc", "org",
"creole", "mediawiki", "rst",
"asciidoc", "pod", "txt"
]
}
This is the same list of lightweight markup formats supported by [GitHub Markup](https://github.com/github/markup)