Skip to content

Commit e03eeed

Browse files
committed
New light mode, security + misc updates
* Added new "light" mode * Added reload request window * Updated packages (security fixes) * Bumped version to 8.3.0 * Extended the docs
1 parent 435b287 commit e03eeed

File tree

5 files changed

+27
-7
lines changed

5 files changed

+27
-7
lines changed

README.md

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ If you use this plugin a lot, please consider a donation:
1010

1111
---
1212

13-
This extension colorizes the indentation in front of your text alternating four different colors on each step. Some may find it helpful in writing code for Nim or Python.
13+
This extension colorizes the indentation in front of your text, alternating four different colors on each step. Some may find it helpful in writing code for Python, Nim, Yaml, and probably even filetypes that are not indentation dependent.
1414

1515
Note: This will also work with vscode-web (github.dev) since version 8.0.0.
1616

1717
![Example](https://raw.githubusercontent.com/oderwat/vscode-indent-rainbow/master/assets/example.png)
1818

1919
Get it here: [Visual Studio Code Marketplace](https://marketplace.visualstudio.com/items?itemName=oderwat.indent-rainbow)
2020

21-
It uses the current editor window tab size and can handle mixed tab + spaces but that is not recommended. In addition it visibly marks lines where the indentation is not a multiple of the tab size. This should help to find problems with indentation in some situations.
21+
It uses the current editor window tab size and can handle mixed tab + spaces (not recommended). In addition, it visibly marks lines where the indentation is not a multiple of the tab size. The visualization can help to find problems with the indentation in some situations.
2222

2323
### Configuration
2424

25-
Although you can just use it as it is there is the possibility to configure some aspects of the extension:
25+
Although you can use it as it is, there is the possibility to configure some aspects of the extension:
2626

2727
```js
2828
// For which languages indent-rainbow should be activated (if empty it means all).
@@ -41,7 +41,6 @@ You can configure your own colors by adding and tampering with the following cod
4141

4242
```js
4343
// Defining custom colors instead of default "Rainbow" for dark backgrounds.
44-
// (Sorry: Changing them needs an editor restart for now!)
4544
"indentRainbow.colors": [
4645
"rgba(255,255,64,0.07)",
4746
"rgba(127,255,127,0.07)",
@@ -59,6 +58,27 @@ You can configure your own colors by adding and tampering with the following cod
5958

6059
> Notice: `errorColor` was renamed from `error_color` in earlier versions.
6160
61+
### Light mode (new since v8.3.0)
62+
63+
There is a (new) alternate mode that uses lines (with a customizable width) instead of the background coloring of the whitespace. Here is an example configuration I like:
64+
65+
```js
66+
// Using the light mode
67+
"indentRainbow.indicatorStyle": "light",
68+
// we use a simple 1 pixel wide line
69+
"indentRainbow.lightIndicatorStyleLineWidth": 1,
70+
// the same colors as above but more visible
71+
"indentRainbow.colors": [
72+
"rgba(255,255,64,0.3)",
73+
"rgba(127,255,127,0.3)",
74+
"rgba(255,127,255,0.3)",
75+
"rgba(79,236,236,0.3)"
76+
```
77+
78+
> For this addition, a big thank you goes to Christian Hoock [wk1](https://github.com/wk1). He also added the editor window reload on config changes.
79+
80+
### Hiding error highlighting
81+
6282
Skip error highlighting for RegEx patterns. For example, you may want to turn off the indent errors for JSDoc's valid additional space (disabled by default), or comment lines beginning with `//`
6383

6484
```js

assets/example.png

66.7 KB
Loading
3.03 MB
Binary file not shown.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "indent-rainbow",
33
"description": "Makes indentation easier to read",
4-
"version": "8.2.2",
4+
"version": "8.3.0",
55
"publisher": "oderwat",
66
"author": {
77
"name": "Hans Raaf"

0 commit comments

Comments
 (0)