Skip to content

Highlight certain keywords #196

Answered by gonzalezreal
umsheikh asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @umsheikh,

You could achieve that by using Markdown syntax to emphasize every search term occurrence in the results (i.e., "*this*") and customizing the emphasis text style in a Markdown view to use the background color you wish.

However, I think that using MarkdownUI for this use case is a bit of a killer. You can achieve the same by setting the background attribute in an AttributedString and rendering it with a Text view.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yousefNowPay
Comment options

Answer selected by gonzalezreal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants