Comment by catchmeifyoucan
2 years ago
Loving the new Code Search! Might be super specific, but is there any syntax for searching attributes in HTML elements. For example if a React Component called <Button ...some-props color="red" /> what's the best way to find all the buttons that are red?
Hmm, you can construct a regular expression, something like:
Example:
https://github.com/search?q=lang%3Atsx+%2F%3CButton%5B%5E%5C...
You can do code blocks with 4 consecutive spaces. Backticks are not supported unfortunately
Ooh nice, this looks great! Thanks!!