Sublime Forum

Show the lines that are found (or found partially) in another file

#1

Hello! I have the following dilemma. I have a file that contains, let’s call it tags and I want to see which of these tags are presented in another file and which not. How can I do it properly so I don’t check all the tags individually?

0 Likes

#2

Can you give some sample examples of these files and tags you speak of. And a description of what you want to do taking the above example as a starting point. That should give some clarity.

0 Likes

#3

Thank you for replying.
Here’s the example of what I’m speaking of. Generally speaking I want to see which lines from the left file are found in the lines of the right one.

0 Likes

#4

So you have a bunch of words (newline separated) on a left file and the right file contains sentences and you want to find the left file words in the right file sentences ?

0 Likes

#5

Something similar was done in


except that it made replacements instead of highlighting… But maybe a useful starting point

0 Likes

#6

@UltraInstinct05 yep, exactly

0 Likes

#7

Thanks, that looks pretty close to what I want to achieve.

0 Likes