I have lines like this
- Code: Select all
a
b
c
d
d
e
f
g
g
h
and I want to find and select/highlight/edit the duplicate lines like this
- Code: Select all
a
b
c
d
d
e
f
g
g
h
How to make it?
Thanks
Peter
Welcome to the IDM Forum. This forum is meant as a user-to-user support mechanism where users can share knowledge and tips for all IDM software.
Since these forums are user-to-user based, IDM does not regularly read or reply to the posts in this forum. For problem reports, suggestions, or feature requests, you must email us directly. Our trained technical support staff answers most inquiries within 30 minutes.
a
b
c
d
d
e
f
g
g
ha
b
c
d
d
e
f
g
g
h


InsertMode
ColumnModeOn
HexOff
Top
PerlReOn
Loop 0
Find RegExp "^(.*\r\n)\1+"
IfNotFound
ExitLoop
EndIf
Key SHIFT
Key UP ARROW
" "
Key END
EndLoop
ColumnModeOff
InsertMode
ColumnModeOff
HexOff
Top
PerlReOn
Loop 0
Find RegExp "^ {10}(.*\r\n)((?: {10}\1)+)"
Replace "\1\2"
IfNotFound
ExitLoop
EndIf
Key UP ARROW
EndLoop

pietzcker wrote:Hm. Not as easy as I first thought.
The easy part is finding the duplicate lines and adding 10 spaces in front of them. This can be done with the following macro:
...
