Reputation: 514
Trying to find a way to highlight parentheses for commented code. I have been using Bracket Pair Colorizer 2 in VScode and don't see an option for it. Please refer line #20 in the below screenshot for more clarity.
Upvotes: 0
Views: 653
Reputation: 180805
Try this setting with the Highlight extension:
"highlight.regexes": {
"(.*//[^[]*?)(\\[)([^\\]]*?)(])": [
{},
{ "color": "white" },
{},
{ "color": "white" }
]
},
or
"highlight.regexes": {
"(.*//[^\\[]+?)(\\[)([^\\]]+?)(\\])(.*)": {
"filterLanguageRegex": "javascript",
"decorations": [
{},
{ "color": "white" },
{},
{ "color": "white" },
{}
]
}
},
Upvotes: 1