https://pantsbuild.org/ logo
#random
Title
w

witty-crayon-22786

12/17/2020, 7:51 PM
do any editors support syntax highlighting regexes when you use them in search?
and next-level: do any support syntax highlighting in the relevant language while also highlighting for regex syntax?
h

hundreds-father-404

12/17/2020, 7:52 PM
In search, you mean like the editor’s functionality to search for code snippets and file names?
w

witty-crayon-22786

12/17/2020, 7:53 PM
yea
e.g. a search like:
Copy code
class MyCl.*
… would have
class
highlighted for the language of the file, and
.*
highlighted because regex
(this so, so doesn’t matter. just a #random thought)
h

hundreds-father-404

12/17/2020, 7:55 PM
Not that I’m aware of. I personally always use ripgrep for regex searches
w

witty-crayon-22786

12/17/2020, 7:57 PM
yea… i was using
vi
when i thought of this. and i use a dumb shell, so maybe this exists in some of them.
e

enough-analyst-54434

12/17/2020, 9:09 PM
Sortof?:
The syntax highlighting is only for the current selected match of the many in the window below.
w

witty-crayon-22786

12/17/2020, 9:54 PM
mm, pretty.
2 Views