Decorate matched terms in search output.
Section: Search, rank, and highlight
Highlight matches or return snippets
sql
sql
SELECT title,
highlight(docs, 1, '<mark>', '</mark>') AS highlighted_body,
snippet(docs, 1, '<b>', '</b>', '…', 12) AS excerpt
FROM docs
WHERE docs MATCH 'sqlite';Explanation
Great for search result pages where you want visible context around the match.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Search, rank, and highlight