[sword-devel] How to highlight SWORD module search results?

Tobias Klein contact at tklein.info
Fri Apr 24 08:37:46 MST 2020

> Am 24.04.2020 um 15:11 schrieb Karl Kleinpaste <karl at kleinpaste.org>:
> On 4/4/20 1:15 PM, Tobias Klein wrote:
>> Does the engine have built-in support for this? Are there any good examples available?
> The engine doesn't do it.
> Xiphos' implementation can be found in mark_search_words() in xiphos/src/main/previewer.cc. It's rather crude as a post-delivery hack in terms of chasing down references and wrapping them in <span>, but the effect is quite good.

Ok. Thanks for the hint, Karl! I’ll have a look at the Xiphos implementation.

Wouldn’t this be something that’s needed by all frontends? In this case it may be useful as part of the engine.

Best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20200424/df1b8353/attachment.html>

More information about the sword-devel mailing list