Add wrap-guide config example to docs

This commit is contained in:
Kevin Sawicki 2013-01-02 13:01:06 -08:00 committed by Kevin Sawicki & Nathan Sobo
parent f4f3002e6d
commit f18086e36c

View File

@ -7,8 +7,23 @@ By default the wrap-guide is placed at the 80th column.
#### Configuration
Setting the wrap guide column still needs to be converted to the new config
system. Bug someone if you find this and we still haven't done it.
You can customize where the column is placed using the `wrapGuide.columns`
config option.
```json
{
"wrapGuide": {
"columns": [
{ "pattern": "\.mm$", "column": 200 },
{ "pattern": "\.cc$", "column": 120 }
]
}
}
```
The above config example would place the guide at the 200th column for paths
that end with `.mm` and place the guide at the 120th column for paths that end
with `.cc`.
You can configure the color and/or width of the line by adding the following
CSS to a custom stylesheet: