Seeking addon: highlight word from one field in another field

I have an unpublished addon that takes a word from a field and highlights (makes bold, etc.) this word in another field (for better readability):

For example:

Word to learn:
Screenshot from 2024-09-09 07-28-06

Sentences contain this word:

Result:

I’m going to publish this addon.

Before publishing, I’d check that there are no existing addons providing the same functionality. I haven’t found any. Do you know such addons?

Thanks!

5 Likes

ColorCoding is a bit like this, but it does not have the function to retrieve text from a field.

In my opinion it is not a problem to upload add-ons with the same features, if the code is different users can use it as an alternative if the add-on is broken, and new developers can use them as a reference to develop a more useful add-on.

4 Likes

This looks like a helpful add-on! Does it work only with bold or also italic?

1 Like

Thanks for recommendation! ColorCoding looks nice, but I have thousands of words to learn, which impossible to add to ColorCoding config.

Supporting an addon takes a lot of time, so I’d not duplicate existing one, when possible :slight_smile:

1 Like

The version I use now for myself supports only bold, but I’m going to add formatting options (including italic), so users will be able to choose what they like more

1 Like

Usually I do this manually for every card, but this would save me a lot of time.

1 Like

I made this addon, which may help you, it is in the editor, you can add words inside the dialog box and change the color, bold, underline, capitalization, highlight, among others, but it is in Portuguese
shortcut ctrl+e to open the editor and ctrl+t to update the word or words typed

https://ankiweb.net/shared/info/1756318714

1 Like

Thanks for reference! Unfortunately, this addon can’t fit to my case: processing thousands of existing cards

I’d have thought that you could do that with JavaScript, etc., as part of the Card – i.e. that you would not need an Add-on to perform the task.

1 Like

Sounds interesting. Putting a JavaScript piece into card template can be a beautiful solution.

However, I have a concern that it’ll be difficult to share the script with non-IT users.
I already use that addon for myself and just want to share it with community.

1 Like

There is no issue about sharing the script. It is part of the Cards belonging to the particular Note type. Any styling and JavaScript that forms part of your deck is exported when you export the deck.

Thus you can pass an empty deck to someone, who can immediately use your Cards.

Once the Note type has been added to your collection, you can transfer the cards you have in an old deck over to the new Note type.

Unfortunately, it’s a much more cumbersome path comparing to getting an addon by its number. Can’t imagine users who’d do this.

And it doesn’t support script updates which are the same important as the original installation.

Your addon is appreciated. Just post it, we look forward to it.

1 Like

Hi @ferophila ,
I’ve published that addon: Cross-Field Highlighter. Adapting it for public usage took much more time than I expected. It supports 4 formats including Italic.

It’s in the Beta phase now. Please, try it carefully on a few notes first. A short guide how to use it is on the addon page.

Please, let me know about any issues, inconveniences or missing features.

3 Likes