vscode-highlight icon indicating copy to clipboard operation
vscode-highlight copied to clipboard

Support Multiple Langauge for `filterLanguageRegex`

Open lolzz77 opened this issue 1 year ago • 3 comments

I have a regex for C & CPP. I wanted to have the filterLanguageRegex to support multiple languages.

lolzz77 avatar Jun 06 '24 05:06 lolzz77

This is already possible. Try similar to my example: "filterLanguageRegex": "Shell|Django",

Mystic8b avatar Jun 21 '24 16:06 Mystic8b

when i put "c" language, it will detect JSON file type as valid language too.

lolzz77 avatar Jun 22 '24 16:06 lolzz77

Use begin/end anchor like ^(c|cpp)$ or mix both with ^(c|cpp)$|(script)

dimateos avatar Feb 27 '25 21:02 dimateos