This package provides a simple way of colorizing regions.
Install through VS Code extensions. Search for Colored Regions
Visual Studio Code Market Place: Colored Regions
Can also be installed using:
ext install colored-regions
Customize your regions by providing a rgba(r,g,b,a), rgb(r,g,b) or #hex color, or create a custom named color in user settings or package.json (workspace) and use it.
Define coloredRegions.colorRange array and use #region without explicit color definition.
Settings will be read from (listed by priority):
- package.json (workspace)
- user settings
- default settings
By default the colorRange has 6 elements, the colors taken from material palette with 0.12 opacity
- Minimap support
Added support for the following languages: Bat, Bat REM, CSS/Less/SCSS, Markdown, Latex, Autohotkey
- Added SQL support:
-- #regionand-- #endregion.
- Region start regex power decreased, just a
regionorpragma regionword does not start the region. To start the region the line must start with one of#,//#,#pragma//,--,--[[,''', or<!--expression followed with theregionword.
-
Code refactoring and performance optimization.
-
No glitchy backgrounds while typing inside the region, only the meaningful changes are sent to the editor.
-
Added support for nested regions.
-
Added support for Lua
--regionand--[[ region ]]comments. -
Added support for
/* regionandend region */multi-line JavaScript/TypeScript/C# comments. -
Added support for
''' regionPython multi-line comments. -
Added support for HEX colors in
#region[#123],#region[#123456]and#region[#12345678]formats. -
Added support for flexible color declarations:
#region Sample Comment [#ddd]is supported. -
Added support for regions without a color declaration: the values are taken from the
coloredRegions.colorRangearray. -
If the color param is not defined or is invalid, region color fallbacks to the next value from
coloredRegions.colorRangearray. -
If no last
#end regionis set, the last region extends to the end of the file. -
Added support for multiple editor windows/split view/the same document in different windows.
-
Multiple color declarations are supported: the first valid is taken:
#region [main] [#ddd]sets color to themainif the last is defined. Otherwise it fallbacks to[#ddd].
- Added support for named colors
- Named colors defined in package.json (workspace)
- Named colors defined in user settings
- Added support for more languages
- MVP release





