EdgeViewer - Modern HTML viewer plugin

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
AkulaBig
Power Member
Power Member
Posts: 560
Joined: 2021-09-09, 17:28 UTC

Re: EdgeViewer - Modern HTML viewer plugin

Post by *AkulaBig »

rg_software wrote: 2025-05-19, 09:47 UTC The only difference is that for HTML files in DetectEncoding mode I am trying to detect encoding.
It was precisely for this that I had a doubt that SVG should be left in HTML.
rg_software wrote: 2025-05-19, 09:47 UTC I see I forgot to move SVG from the HTML list, will do.
I think it will be more correct. I can do it myself, but I will wait for changes from you.
User avatar
deus-ex
Power Member
Power Member
Posts: 991
Joined: 2003-02-10, 17:45 UTC

Re: EdgeViewer - Modern HTML viewer plugin

Post by *deus-ex »

rg_software wrote: 2025-05-19, 00:30 UTC Well, this should be a quickfix, please check.
Your quickfix quickly fixed what was supposed to be fixed quickly. :D
I also moved the extension SVG from string 'HTML=" to the newly introduced string 'Other=', as is logical and recommended.

This update works better than the previous one. I have a HTML were the previous update repeatedly struggled to load the document, upon opening the HTML it stalled for about half a minute, then returned the focus back to TC without displaying the file. With the recent update this document works fine, too. 🙂👍
User avatar
rg_software
Member
Member
Posts: 161
Joined: 2009-08-06, 12:59 UTC
Location: Aizu-Wakamatsu, Japan

Re: EdgeViewer - Modern HTML viewer plugin

Post by *rg_software »

deus-ex wrote: 2025-05-19, 18:46 UTC This update works better than the previous one. I have a HTML were the previous update repeatedly struggled to load the document, upon opening the HTML it stalled for about half a minute, then returned the focus back to TC without displaying the file. With the recent update this document works fine, too. 🙂👍
Good :)
I actually tried to do this:
* The fit-to-screen-function could be toggled by pressing the 'F' key.
* A ini-flag, like "fit-image-to-screen=0/1", controls the default behaviour.
Is it applicable to anything but images? I created a separate category "Images". There is an option to specify CSS for image and body background, and the initial fullscreen status in the ini. "F" switches between stretch and real size. Pls try it out.
AkulaBig
Power Member
Power Member
Posts: 560
Joined: 2021-09-09, 17:28 UTC

Re: EdgeViewer - Modern HTML viewer plugin

Post by *AkulaBig »

rg_software wrote: 2025-05-20, 09:21 UTC "F" switches between stretch and real size.
It works only with the English keyboard layout. During the Russian layout, it does not work.
Есть проблемы с mht. EdgeViewer не показывает. MarkdownView, Edge показывают:
[img]https://i.ibb.co/nMbX943J/image.gif[/img]
User avatar
rg_software
Member
Member
Posts: 161
Joined: 2009-08-06, 12:59 UTC
Location: Aizu-Wakamatsu, Japan

Re: EdgeViewer - Modern HTML viewer plugin

Post by *rg_software »

AkulaBig wrote: 2025-05-20, 10:59 UTC
rg_software wrote: 2025-05-20, 09:21 UTC "F" switches between stretch and real size.
It works only with the English keyboard layout. During the Russian layout, it does not work.
Есть проблемы с mht. EdgeViewer не показывает. MarkdownView, Edge показывают:
[img]https://i.ibb.co/nMbX943J/image.gif[/img]
Yep, I understand why non-English 'F' doesn't work, this will be fixed. But what's wrong with MHT? It used to work in the past. I guess you'll have to send me a sample file for investigation.
AkulaBig
Power Member
Power Member
Posts: 560
Joined: 2021-09-09, 17:28 UTC

Re: EdgeViewer - Modern HTML viewer plugin

Post by *AkulaBig »

rg_software wrote: 2025-05-20, 13:07 UTC But what's wrong with MHT? It used to work in the past. I guess you'll have to send me a sample file for investigation.
https://www.dropbox.com/scl/fi/sj05q7yi95h17gbj4igfl/.mht?rlkey=ikv2ys2t6wbuj82terox1f6lu&dl=1
This MHT is special. I created it myself. But Edge shows him well. If you can’t figure it out, it’s not scary. But interesting.
User avatar
deus-ex
Power Member
Power Member
Posts: 991
Joined: 2003-02-10, 17:45 UTC

Re: EdgeViewer - Modern HTML viewer plugin

Post by *deus-ex »

2rg_software

The fit-to-screen toggle works marvelously. I also checked the preset flag FullScreen=0/1; both settings work as expected. Great job. 😄👍

I also have two MHT files that fail to display properly. One gives an empty screen, the other is displayed in raw text mode only, regardless of the setting of the flag DetectEncoding=0/1. MarkdownViewer displays them both fine.

I have another multi-page MHT in which EdgeViewer does not show the top menu line properly, but as floating unsorted items in orange font. MarkdownViewer displays the top line correctly in white font on a blue background. EdgeViewer is more capable of properly showing the pages in correct formatting, whereas MarkdownViewer loses the formatting on page two and onwards.

I bundled the three mentioned MHT files in an 7zip archive (~4.4 MB): Download page
Enjoy yourself, everyone. :wink:

EDIT: fullscreen toggle > fit-to-screen toggle
Last edited by deus-ex on 2025-05-21, 09:29 UTC, edited 1 time in total.
User avatar
deus-ex
Power Member
Power Member
Posts: 991
Joined: 2003-02-10, 17:45 UTC

Re: EdgeViewer - Modern HTML viewer plugin

Post by *deus-ex »

Hey AkulaBig, how are you doing? :D
AkulaBig wrote: 2025-05-20, 14:09 UTC https://www.dropbox.com/scl/fi/sj05q7yi95h17gbj4igfl/.mht?rlkey=ikv2ys2t6wbuj82terox1f6lu&dl=1
This MHT is special. I created it myself. But Edge shows him well. If you can’t figure it out, it’s not scary. But interesting.
Note to all: Editing out lines 866-868 gets rid of the browser pop-up.
AkulaBig
Power Member
Power Member
Posts: 560
Joined: 2021-09-09, 17:28 UTC

Re: EdgeViewer - Modern HTML viewer plugin

Post by *AkulaBig »

deus-ex wrote: 2025-05-20, 14:20 UTC Enjoy yourself, everyone. :wink:
Good files. Added to his collection.
AkulaBig
Power Member
Power Member
Posts: 560
Joined: 2021-09-09, 17:28 UTC

Re: EdgeViewer - Modern HTML viewer plugin

Post by *AkulaBig »

deus-ex wrote: 2025-05-20, 14:36 UTC Hey AkulaBig, how are you doing? :D
Hello. We live slowly 8)
deus-ex wrote: 2025-05-20, 14:36 UTC Note to all: Editing out lines 866-868 gets rid of the browser pop-up.
If you disconnect Allowscripting=0 in MarkdownView, then there will be no pop -up window.
User avatar
deus-ex
Power Member
Power Member
Posts: 991
Joined: 2003-02-10, 17:45 UTC

Re: EdgeViewer - Modern HTML viewer plugin

Post by *deus-ex »

AkulaBig wrote: 2025-05-20, 16:26 UTC If you disconnect Allowscripting=0 in MarkdownView, then there will be no pop -up window.
Ah, yes, that's a good hint. Thank you, AkulaBig. 🙏
User avatar
deus-ex
Power Member
Power Member
Posts: 991
Joined: 2003-02-10, 17:45 UTC

Re: EdgeViewer - Modern HTML viewer plugin

Post by *deus-ex »

rg_software wrote: 2025-05-20, 09:21 UTC There is an option to specify CSS for image and body background, and the initial fullscreen status in the ini. "F" switches between stretch and real size.
I just noticed, the recently added fit-to-screen function works great, but the related INI-flag is named fullscreen, which is a little misleading. 🙂
AkulaBig
Power Member
Power Member
Posts: 560
Joined: 2021-09-09, 17:28 UTC

Re: EdgeViewer - Modern HTML viewer plugin

Post by *AkulaBig »

deus-ex wrote: 2025-05-21, 09:33 UTC which is a little misleading.
I did not want to write about it, but this name immediately embarrassed me.
User avatar
deus-ex
Power Member
Power Member
Posts: 991
Joined: 2003-02-10, 17:45 UTC

Re: EdgeViewer - Modern HTML viewer plugin

Post by *deus-ex »

AkulaBig wrote: 2025-05-21, 13:37 UTC I did not want to write about it, but this name immediately embarrassed me.
:lol:

And so it fell on me to communicate this politely (hopefully).
User avatar
rg_software
Member
Member
Posts: 161
Joined: 2009-08-06, 12:59 UTC
Location: Aizu-Wakamatsu, Japan

Re: EdgeViewer - Modern HTML viewer plugin

Post by *rg_software »

deus-ex wrote: 2025-05-21, 15:29 UTC
AkulaBig wrote: 2025-05-21, 13:37 UTC I did not want to write about it, but this name immediately embarrassed me.
:lol:

And so it fell on me to communicate this politely (hopefully).
Yeah, "fit-to-screen" would be better :)
Meanwhile, I looked at "Телевизионные ответвители.mht". Unfortunately, MHTML converter fails on it. I will check why, but frankly speaking I know little about such conversion. Edge has built-in support for MHT, which the embedded Chromium engine lacks, unfortunately.

Another question: when you press 'F' to fit-to-screen, will this mode survive across files (F3/<ESC>/F3 and Quick view/File navigation)? If not, should it? :)
Post Reply