Because I found this in my top search results on the Internet, and since the question was a bit obscure, I am going to answer this in several ways.
Of course, as mentioned in lorenzo montanan's answer, you need to provide some css to highlight (I think so, at least).
If the OP (or you, the reader) asked to highlight a few words in the results, now there are md-highlight-flags that can help (see md-highlight-text documentation ), which currently works as follows:
md-highlight-flags - string - a list of flags (based on JavaScript RexExp flags).
Supported flags:
g: Find all matches in the provided text
i: ignore case when searching for matches
$: only if the text ends with a search word
^: Match only if the text begins with a search query
If, however, you want to enter several words in the input file and display the selection for each word separately, without being in the same order, then the text md-highlight-text will not be and are not interested in this (see the query for highlighting several input words and another request ). One way to do this is to write your own filter directive.
source share