Ignore large block of text

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
AlexFeren
Junior Member
Posts: 11
Joined: Thu Feb 22, 2024 12:29 pm

Re: Ignore large block of text

Post by AlexFeren »

psguru wrote: Tue May 07, 2024 3:17 pm Please provide screenshots illustrating the issue.
It's exactly as above:

Code: Select all

:
text
:
        set private-key "-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAACmFlczI1Ni1jdHIAAAAGYmNyeXB0AAAAGAAAABCGR2b7mr
:
base 64 text
base 64 text
:
qcRimIuw==
-----END OPENSSH PRIVATE KEY-----"
:
text
:
        set private-key "-----BEGIN OPENSSH PRIVATE KEY-----
MIIDnjCCA1ygAwIBAgIIX2FQJDyoPPMwCwYJYIZIAWUDBAMCMIGdMQswCQYDVQQG
:
base 64 text
base 64 text
:
tSKBjT/R3vZOU6+VvWvx4yJN
-----END OPENSSH PRIVATE KEY-----"
:
text
:
and ALL Lines within text blocks delimited by "-----BEGIN OPENSSH PRIVATE KEY----- and -----END OPENSSH PRIVATE KEY-----" need to be excluded from comparison.
User avatar
psguru
Site Admin
Posts: 2239
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Ignore large block of text

Post by psguru »

I meant screenshots with your options and EDP comparison results.
psguru
PrestoSoft
AlexFeren
Junior Member
Posts: 11
Joined: Thu Feb 22, 2024 12:29 pm

Re: Ignore large block of text

Post by AlexFeren »

Rather than back/forth. I’ve provided content - demonstrate how you’d achieve the requirement using that content. If you can, then problem’s solved.
User avatar
psguru
Site Admin
Posts: 2239
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Ignore large block of text

Post by psguru »

You seem to be oddly uninterested to see this issue resolve. Please see below.

Screenshot 2024-05-12 121355.png
Screenshot 2024-05-12 121355.png (86.68 KiB) Viewed 174 times
Screenshot 2024-05-12 121440.png
Screenshot 2024-05-12 121440.png (75.18 KiB) Viewed 174 times
Screenshot 2024-05-12 121558.png
Screenshot 2024-05-12 121558.png (145.15 KiB) Viewed 174 times

Is this what you wanted to achieve?
psguru
PrestoSoft
AlexFeren
Junior Member
Posts: 11
Joined: Thu Feb 22, 2024 12:29 pm

Re: Ignore large block of text

Post by AlexFeren »

Thank you, that works and I appreciate your effort for the workaround... Except, it is un-intuitive, never mind that a Base-64 blobs aren't comments.

Firstly, my ".config" files can come from multiple vendor appliances - all will have different "comments", so, doing this every time I load a different file is unwieldy.

Secondly, the right place to introduce a new "Ignore (multi-line) text block" feature is exactly in your screenshot - it's in "Text Comparison Option", below "Ignore parts of each line", not as a comment for a file type.

I think it wouldn't be tremendous effort for developer (you?) to introduce a new "Ignore (multi-line) text block" feature.
User avatar
psguru
Site Admin
Posts: 2239
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: Ignore large block of text

Post by psguru »

Except, it is un-intuitive, never mind that a Base-64 blobs aren't comments.
Yes, it's a workaround and a solution to your problem. And why do you care if's it not really comments?
Firstly, my ".config" files can come from multiple vendor appliances - all will have different "comments", so, doing this every time I load a different file is unwieldy.
You can use the OR (vertical bar) expression to expand the regex I provided, thus covering multiple syntax options.
Secondly, the right place to introduce a new "Ignore (multi-line) text block" feature is exactly in your screenshot - it's in "Text Comparison Option", below "Ignore parts of each line", not as a comment for a file type.
If/when this is implemented, it will still be done via a regular expression, only the one that can span multiple lines (like for the comments). We'll add the following to the wish list:

Option to ignore multi-line text blocks
psguru
PrestoSoft
AlexFeren
Junior Member
Posts: 11
Joined: Thu Feb 22, 2024 12:29 pm

Re: Ignore large block of text

Post by AlexFeren »

psguru wrote: Mon May 13, 2024 4:10 pm
Except, it is un-intuitive, never mind that a Base-64 blobs aren't comments.
Yes, it's a workaround and a solution to your problem. And why do you care if's it not really comments?
See attached image.
Attachments
Capture.PNG
Capture.PNG (9.41 KiB) Viewed 98 times
Post Reply