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

Karl Kleinpaste karl at kleinpaste.org
Fri Apr 24 06:11:08 MST 2020


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20200424/412790eb/attachment.html>


More information about the sword-devel mailing list