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 SQL support:
-- #region
and-- #endregion
.
- Region start regex power decreased, just a
region
orpragma region
word does not start the region. To start the region the line must start with one of#
,//#
,#pragma
//
,--
,--[[
,'''
, or<!--
expression followed with theregion
word.
-
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
--region
and--[[ region ]]
comments. -
Added support for
/* region
andend region */
multi-line JavaScript/TypeScript/C# comments. -
Added support for
''' region
Python 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.colorRange
array. -
If the color param is not defined or is invalid, region color fallbacks to the next value from
coloredRegions.colorRange
array. -
If no last
#end region
is 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 themain
if 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