Author

Topic: Looking for a software or script that highlights a list of words. (Read 217 times)

legendary
Activity: 2730
Merit: 7065
Ask ChatGPT to write some JS that can search the browser DOM for some text. Wink
I have to spend some more time playing around with this AI because the possibilities are endless. Did a quick test and asked it to create me a script. It did so in Python with instructions on how to insert the words and phrases I need. I asked it to create something else. The second thing I got was a Microsoft Word macro code. No idea if the code works or not. I didn't test it because the method with Notepad++ I mentioned above works just fine and I am happy with it.

One indirect way to solve this problem in microsoft office word, would be to form an exclusion dictionary with the words that you have to find and highlight.
No, that's not what I was looking for. Although it would put emphasize on the words and phrases I want to find, I don't want them to be marked as incorrectly spelled all the time and in situations where I am not working or actively searching for those terms.
staff
Activity: 3304
Merit: 4115
I actually found what I was looking for with Notepad++. It can be done through the Search>Find>Mark commands. It works well with single words as well as whole phrases. The command is:
Code:
(word1|word12|word3|)

You can add as many terms as you want.
Any half decent text editor will be able to do this. At least one with a graphical interface. I believe it can be done on vim, and nano, but it's not as easy to do. You can also generally use regex on text editors to get more complex results, like filtering out certain patterns. Just search up "your text editor + regex commands" on a search engine.
hero member
Activity: 882
Merit: 792
Watch Bitcoin Documentary - https://t.ly/v0Nim
I actually found what I was looking for with Notepad++. It can be done through the Search>Find>Mark commands. It works well with single words as well as whole phrases. The command is:
If I were you, I would place this question on the answers.microsoft.com forum.
One indirect way to solve this problem in microsoft office word, would be to form an exclusion dictionary with the words that you have to find and highlight. Have a look at this - How to Create an Exclusion Dictionary in Microsoft Word
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
Ask ChatGPT to write some JS that can search the browser DOM for some text. Wink

No I'm serious, you can even ask it to create a manifest file for that JS file, which you can bundle together in a zip file to form a Chrome extension. Similar can be done for Firefox extensions with different steps.
legendary
Activity: 2730
Merit: 7065
Thanks for the suggestions RickDeckard.

I actually found what I was looking for with Notepad++. It can be done through the Search>Find>Mark commands. It works well with single words as well as whole phrases. The command is:
Code:
(word1|word12|word3|)

You can add as many terms as you want.

Here is an example of how it looks like for PowerGlove's post above.


legendary
Activity: 1148
Merit: 3117
Assuming that you need to run the software in Firefox, you can try {find+}[1], which is an FOSS[2] extension for both Chrome and Firefox that allows you to search the whole page by using regular expressions as PowerGlove suggested. The excellent thing about regular expressions is that you can basically look for anything provided you have some knowledge regarding building queries.

As for using Macros in Microsoft Word, I've found a simple code[3] that's easy to change depending on your needs:
Code:
Sub HighlightMultipleWords()

Dim sArr() As String
Dim rTmp As Range
Dim x As Long
sArr = Split("highlight specific words") ' your list
Options.DefaultHighlightColorIndex = wdYellow

For x = 0 To UBound(sArr)
Set rTmp = ActiveDocument.Range
    With rTmp.Find
                .Text = sArr(x)
                .Replacement.Text = sArr(x)
                .Replacement.Highlight = True
                .Execute Replace:=wdReplaceAll
    End With
Next

End Sub
Just change the sArr variable (between () ) with the words that you're looking to find and run the macro. You'll need to have the Developer tab activated in MS Word, which you can do by going to File -> Options -> Customize Ribbon -> On the right column scroll down to Developer and tick. Now you just need to press Alt+F11 and you'll be able to enter the previous code. The benefit of this solution is that you don't need to use regex expressions to look for your word list.
I've tested the previous code and it does the job well but let us know if you find yourself struggling with something.

[1]https://addons.mozilla.org/en-US/firefox/addon/brandon1024-find/
[2]https://github.com/brandon1024/find/
[3]https://stackoverflow.com/questions/69633517/how-do-i-search-and-highlight-multiple-terms-in-microsoft-word
legendary
Activity: 2730
Merit: 7065
I have come across this during my research. It remains one of the options unless I find something better.

Never heard of this.

This looks interesting. I don't like that it's an extension that hasn't been updated since 2020 and doesn't have many users. But if it can highlight dozens of words at once, I can try it out on one of my old laptops.

I have some instructions that explain how to do that with Notepad++. Since I had used this software in the past, I am going to try with that first.
hero member
Activity: 510
Merit: 4005
This is quite easy to do with the CTRL + F option if it's just one word, but if I need the same thing for 40 or 50 words, what are my options?   
If the software you're using supports finding by regex, then you might use a search pattern like:

\b(Word1|Word2|Word3)\b

Syntax will vary by implementation, but most good text editors can do some variant of the above (Sublime Text is excellent, if you're in the market for a modern, but sensibly-engineered text editor).

There are also browser extensions that let you do this, but I wouldn't risk messing with them.

Finally, it looks like Word (which I haven't touched in a long time) has some kind of regex implementation hiding behind the "Use wildcards" option, so you may be able to find the right expression for that.
sr. member
Activity: 854
Merit: 424
Playbet.io - Crypto Casino and Sportsbook
legendary
Activity: 2730
Merit: 7065
MS Word has a search and find & replace function, but they both work with just one word at a time. I have never heard anyone being able to use it with a list of words. Imagine going through a document of dozens of pages where you need a way to single out 50 different words? MS Word won't be much of a help with that particular function.

Maybe with a macro as I mentioned in the OP. But some macros have, unfortunately, known to be malware carriers. 
copper member
Activity: 2856
Merit: 3071
https://bit.ly/387FXHi lightning theory
Does MS Word not still do this? It used to highlight EVERY word when you used the find function but it'd highlight the first word it selected differently. If you're just after highlighting every word that might be what you need but it used to be a popup window (it might be called "find and replace").
legendary
Activity: 2730
Merit: 7065
I know this forum is blessed with some very knowledgeable individuals, and maybe some of them can help me with what I am searching for.
Let's say I am reading the Bitcoin whitepaper or a thread on the forum with plenty of text. I need a piece of software that can automatically find and highlight a list of words of my choosing. This is quite easy to do with the CTRL + F option if it's just one word, but if I need the same thing for 40 or 50 words, what are my options? I don't want to manually check each one.

I have found some suggestions to use Word macros, but I am not comfortable downloading and installing things like that from random people from the internet. Still, if that's the only way to do it, I will have to reconsider it.

Any of you statistics and data fans know of any other options?   
Jump to: