From f18086e36c7c02790203dfeabb75e08a606d5f9b Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 2 Jan 2013 13:01:06 -0800 Subject: [PATCH] Add wrap-guide config example to docs --- docs/extensions/wrap-guide.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/docs/extensions/wrap-guide.md b/docs/extensions/wrap-guide.md index f1dc096d2..237c23846 100644 --- a/docs/extensions/wrap-guide.md +++ b/docs/extensions/wrap-guide.md @@ -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: