fabiospampinato / vscode-highlight

Advanced text highlighter based on regexes. Useful for todos, annotations etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to filter language C++?

BH2WFR opened this issue · comments

commented

I wrote like this, but it is not working in C++ source or header files

 "((#)( +)?(\\*)(.*))": { //# #*test
      //"fontWeight": "bold",
      "color": "#66ff33",
      "filterLanguageRegex": "(CMake|Json|C\\+\\+)"
  },
```

I'm not sure what language identifier vscode uses for C++ files, if you open the palette for changing the language of a file there's a list of them, maybe the code is the string between parenthesis, which in this case would be "cpp".

Screen Shot 2023-08-29 at 13 46 01