I figured out why my regex wasn’t working, so was able to get it to properly match an N-line paragraph that has a repeat later.
if you’re in v8.x, go to Settings > Preferences > Highlighting Go to the Mark All section and uncheck Match whole word onlyc88196e3-89b5-4a06-8971-07bdbc24e946-image.png Go to the first line (Ctrl+Home) FIND the first instance of each paragraph Search > Find FIND WHAT = (?-s)((^.+?(\R|\Z))+)(?=(?s:.*)\1) Search Mode = ☑ Regular Expression FIND NEXT
=> this highlights the first paragraph that is repeated somewhere else
f7ea6590-2d52-42d7-866c-0c8d8456b4d1-image.png Use Search > Mark All > Using #th Style (or right click context menu > Style All Occurrences of Token)
=> all of the instances of that first paragraph should be marked with that style number
04df6ffc-e045-4443-a690-d0d2b60bc17e-image.png Use Search > Next or F3 from the editor window, or the FIND NEXT button in the FIND dialog, to select the next “first instance of a paragraph”, and style using a different #th style. Repeat as necessary.
b162546d-52a7-405c-b113-3faa0da8ffa4-image.png
So it’s not 100% automated, but it’s better than manually having to find each paragraph (chorus or bridge) And remember, this will not be saved in the file; the next time you open it, you’ll have to do it again.