EdgeViewer - Modern HTML viewer plugin

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
rg_software
Member
Member
Posts: 113
Joined: 2009-08-06, 12:59 UTC
Location: Aizu-Wakamatsu, Japan

Re: EdgeViewer - Modern HTML viewer plugin

Post by *rg_software »

Wait until someone fixes it and use HTMLView :)
Yeah, for the time being. I'll try fixing it when I have time; it doesn't look very complicated.
User avatar
rg_software
Member
Member
Posts: 113
Joined: 2009-08-06, 12:59 UTC
Location: Aizu-Wakamatsu, Japan

Re: EdgeViewer - Modern HTML viewer plugin

Post by *rg_software »

Inside EdgeViewer plugin folder there is a subfolder assets\mhtml. Try replacing the file mhtml2html.min.js with this new version.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6499
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: EdgeViewer - Modern HTML viewer plugin

Post by *Horst.Epp »

rg_software wrote: 2023-09-27, 09:09 UTC Inside EdgeViewer plugin folder there is a subfolder assets\mhtml. Try replacing the file mhtml2html.min.js with this new version.
A big improvement :)
Now it displays all the test files.
Only the fileformatinfo.mht from our tests displays the menu from the left side in the middle.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.3 x64
User avatar
rg_software
Member
Member
Posts: 113
Joined: 2009-08-06, 12:59 UTC
Location: Aizu-Wakamatsu, Japan

Re: EdgeViewer - Modern HTML viewer plugin

Post by *rg_software »

Only the fileformatinfo.mht from our tests displays the menu from the left side in the middle.
Unfortunately, it is the same with the real Edge as well.
User avatar
AntonyD
Power Member
Power Member
Posts: 1249
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: EdgeViewer - Modern HTML viewer plugin

Post by *AntonyD »

2rg_software
Edge browser is capable to render SVG files inside its engine.
But I can't make it work with that plug. And it's looking strange - coz we have here absolutely the same engine
as and inside the "pure" Edge browser....
Maybe I MUST edit something somewhere at the options of the plug?
Btw. WHICH by default the DETECT string IS for the plug?

And shouldn't all the listed extensions in the DETECT line be mapped to all
the listed extensions in the INI config file in the [Extensions] section?
#146217 personal license
User avatar
rg_software
Member
Member
Posts: 113
Joined: 2009-08-06, 12:59 UTC
Location: Aizu-Wakamatsu, Japan

Re: EdgeViewer - Modern HTML viewer plugin

Post by *rg_software »

AntonyD wrote: 2023-09-27, 13:26 UTC Edge browser is capable to render SVG files inside its engine.
But I can't make it work with that plug.
SVG works for me with the following settings:
1) Add EXT="SVG" to the detect string manually.
2) Add SVG to the list of extensions under [Extensions]/HTML.

In general, this is how it works now:
- The ini file is the primary source of knowledge. When asked for the detect string, the plugin gathers data from the ini file and forms the detect string containing all the extensions there.
- The elements inside [Extensions] are handled differently. There is a group HTML, group Markdown, etc.

For any file in the HTML group, the browser opens it "as is", hence, SVG should go there.
For other files I do some group-specific preprocessing. Markdown is preprocessed in a different way than MHT or Asciidoc.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6499
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: EdgeViewer - Modern HTML viewer plugin

Post by *Horst.Epp »

rg_software wrote: 2023-09-27, 11:34 UTC
Only the fileformatinfo.mht from our tests displays the menu from the left side in the middle.
Unfortunately, it is the same with the real Edge as well.
That's right.
No big problem, the rest of the samples are displayed fine for me.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.3 x64
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6499
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: EdgeViewer - Modern HTML viewer plugin

Post by *Horst.Epp »

AntonyD wrote: 2023-09-27, 13:26 UTC And shouldn't all the listed extensions in the DETECT line be mapped to all
the listed extensions in the INI config file in the [Extensions] section?
Add the SVG extesnion ito the Detect string and also in the edgeviewer.ini
[Extensions]
; should be uppercase to form the right detect string
HTML=HTM,HTML,XML,PDF,SVG

Then it works and is also used by TC switching plugins with key 4.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.3 x64
User avatar
MaxX
Power Member
Power Member
Posts: 1029
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: EdgeViewer - Modern HTML viewer plugin

Post by *MaxX »

2rg_software
Please, add PHP extension to the default HTML list and to default detect string. It is enough popular to be used.
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6499
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: EdgeViewer - Modern HTML viewer plugin

Post by *Horst.Epp »

MaxX wrote: 2023-09-27, 20:57 UTC 2rg_software
Please, add PHP extension to the default HTML list and to default detect string. It is enough popular to be used.
That are text files.
Not even MS Edge shows more than the text.
Viewing PHP files is the job of plugins like CudaLister which shows them with syntax highlighting
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.3 x64
User avatar
MaxX
Power Member
Power Member
Posts: 1029
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: EdgeViewer - Modern HTML viewer plugin

Post by *MaxX »

2Horst.Epp
Just download this viewtopic.php?p=441878#p441878 and open, you'll see that "viewtopic.php" is an normal HTML file, not plain text.
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
Dalai
Power Member
Power Member
Posts: 9398
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: EdgeViewer - Modern HTML viewer plugin

Post by *Dalai »

2MaxX
PHP files are plain text, that is until they're executed (by some web server). Such execution usually results in HTML code which is then interpreted by a web browser displaying a web page. But after they're executed, they're not PHP files per se anymore.

NB: HTML and PHP are both plain text, but with different syntax.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
rg_software
Member
Member
Posts: 113
Joined: 2009-08-06, 12:59 UTC
Location: Aizu-Wakamatsu, Japan

Re: EdgeViewer - Modern HTML viewer plugin

Post by *rg_software »

Hi all again,

Yes, php extension is not something I'd enable by default for a typical users. You can list it in your HTML section, however.
Anyway, another update.

This is my first attempt to view directories. It is not much, as it only shows images, and I believe the thumbnail algorithm isn't really good.

Make sure you have the empty extension (EXT="") in your detect string or reinstall the extension. This functionality can be enabled/disabled in the ini file.
KozakMak
Senior Member
Senior Member
Posts: 370
Joined: 2021-05-24, 12:39 UTC
Location: UA

Re: EdgeViewer - Modern HTML viewer plugin

Post by *KozakMak »

rg_software wrote: 2023-09-28, 14:50 UTC It is not much, as it only shows images, and I believe the thumbnail algorithm isn't really good.
why only images :?
OS: Win10 | TC: latest x64
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6499
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: EdgeViewer - Modern HTML viewer plugin

Post by *Horst.Epp »

rg_software wrote: 2023-09-28, 14:50 UTC This is my first attempt to view directories. It is not much, as it only shows images, and I believe the thumbnail algorithm isn't really good.

Make sure you have the empty extension (EXT="") in your detect string or reinstall the extension. This functionality can be enabled/disabled in the ini file.
That links to a very old version of EdgeViewer.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.3 x64
Post Reply