Sometimes I want to search posts which mention some-command-name by using


formatting or maybe also multi-line code blocks (<pre>, <code> or Ctrl+K).

As of today the search query for the quoted term "mate-disk-usage-analyzer" is failed:

search for quoted "mate-disk-usage-analyzer" failed

but is shows the result if I remove the quotes:

search for mate-disk-usage-analyzer

and what is interesting the requested term mate-disk-usage-analyzer is not highglighted/bolded in the search result.

But I know that for example my post from search results contains requested code block (see A: How do I find the amount of free space on my hard drive? and its source):

source code of my answer with search term

I expect that users can find posts by their contents of inline code and code blocks.

Is it correct that search on AskUbuntu ignores code blocks and inline codes?

  • 3
    I would call it a bug!
    – pomsky
    Commented Nov 10, 2018 at 13:35
  • Hey @N0rbert, drop by in chat sometime! ;-) +1
    – Fabby
    Commented Nov 12, 2018 at 22:37

1 Answer 1


There's a special syntax for searching in code blocks. Search for code:"mate-disk-usage-analyzer" and your answer is the only hit:

enter image description here


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .