How to filter search in TeX.SX to those have code in them. Also how to search inside the codes themselves.
Searching for posts that contains code can be achieved using the boolean operator
hascode. More specifically,
1 returns only posts that contain code blocks;
0 returns only posts that contain no code.
Searching for posts where inline code (via backticks or
</code> markdown) contains a specific
<string> is achieved using
More search options are available from the search help center
Simply "hascode:yes", "hascode:1" or "hascode:true" should be added to search results.