Inline syntax highlighting?

I recently have seen a video where a guy uses this syntax to highlight a word inline:
%#<highlight name># <something to highlight>%*

But I Can’t find the documentation for that. what is the name of that syntax?

Those are statusline’s format items. You should look at :h statusline.

How to do the same within the buffer?