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
Crag Jones
Junior Member
Junior Member
Posts: 3
Joined: 2023-08-23, 11:26 UTC

Re: Modern HTML viewer plugin

Post by *Crag Jones »

WHAT AM I DOING WRONG???
This request is is for trying to use EdgeViewer.wlx64 lister plugin with xplorer2 (64 bit version under trial evaluation) with the set up listed below:
Firstly, apologies if this is not the correct forum for such a query i.e. using TotalCommander plugins with another product and please inform me if that is the case? If however it is possible to offer advice, then the details are:

The .ini file is at:
C:\Users\user\AppData\Roaming\ZABKAT\TCPLUGINS.ini

It's contents are:
-------------------------------------------------------------------------
[ContentPlugins]
[PackerPlugins]
[ListerPlugins]
0=C:\Program Files\zabkat\plugins\wlx-edge-viewer-v1.0.1\EdgeViewer.wlx64
---------------------------------------------------------------------------
The ultimate xplorer2 package and its plugins are installed in separate directories as :
C:\Program Files\zabkat\xplorer2_ult
C:\Program Files\zabkat\plugins\wlx-edge-viewer-v1.0.1

The contents of the edgeviewer.ini file are:
---------------------------------------------------------------------------
[Extensions]
; should be uppercase to form the right detect string
HTML=HTM,HTML,XML
Markdown=MD,MARKDOWN
AsciiDoc=ADOC,ASCIIDOC

[Chromium]
; space-separated; check switches at:
; https://peter.sh/experiments/chromium-command-line-switches/
; (try, e.g, --disable-smooth-scrolling)
;Switches=--disable-extensions-file-access-check
Switches=
UserDir=%USERPROFILE%

[Markdown]
HoedownArgs=--fenced-code --hard-wrap --tables
UseSmartypants=1
; from the "markdown" subfolder
CSS=github.css

[AsciiDoc]
; from the "asciidoctor" subfolder
CSS=asciidoctor.css
--------------------------------------------------------------------------------
EBWebView is present as:
C:\Users\user\EBWebView

There are no error messages, but it will not preview web pages but simply lists the code for whichever url shortcut I am trying to open.
Could anyone please give me a clue about what I am doing wrong? I suspect there may possibly be a problem with the way my directories are set-up?
Many thanks.
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Modern HTML viewer plugin

Post by *petermad »

it will not preview web pages but simply lists the code for whichever url shortcut I am trying to open.
EdgeViewer cannot show .url files. Have you tried to open a local .htm or .html file? - that's what EdgeViewer (and the older HtmlView plugin) is for.

If you want to open .url files try the "URL Shortcut Viewer" plugin: https://totalcmd.net/plugring/urlwlx.html
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Crag Jones
Junior Member
Junior Member
Posts: 3
Joined: 2023-08-23, 11:26 UTC

Re: Modern HTML viewer plugin

Post by *Crag Jones »

Many thanks Peter. I had used urlview.wlx64 before and have also now downloaded Total Commander as well (no Miller Columns though!). The problem with using urlview.wlx64 is that in both Total Commander and xplorer2 though it will eventually display the web-page you first have to click though numerous script error messages. Is there any way of avoiding or supressing these? I suspect it is because urlview.wlx64 was written for Internet Explorer? Do you know of any updated or new versions that will display url links more successfully? The reason being of course is that it is simpler to hold both documents (of all varieties) and links to websites in a single unified filing system rather than having to have two separate hierarchies AND to be able to at least view both documents and web-links in that unified hierarchy from within a single file browser.
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Modern HTML viewer plugin

Post by *petermad »

you first have to click though numerous script error messages.
Maybe you can avoid some of the messages by configuring Internet Explorer by running inetcpl.cpl - change settings in the Advanced and the Security tab that relates to the messages you get.

Do you know of any updated or new versions that will display url links more successfully?
No, sorry.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
rg_software
Member
Member
Posts: 113
Joined: 2009-08-06, 12:59 UTC
Location: Aizu-Wakamatsu, Japan

Re: Modern HTML viewer plugin

Post by *rg_software »

Hi all,
Check this new release, please.

News: 1) Chinese/Russian/etc. filenames fixed; 2) URL shortcut files support (should open the website pointed by the shortcut).
Next goals: 1) optional cache delete on exit; 2) MHT support (can't yet make it work).
Challenges: 1) not sure how to implement offline mode, will check. 2) not sure how to implmement "directory thumbnails" mode. As I thought, if I make a detect string, then ListLoad()/ListLoadW() is not called for anything which is not listed in the detect string, so I cannot catch a directory.

If you want to try URL extension, uninstall/install the plugin to let it form the new detect string.
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: EdgeViewer - Modern HTML viewer plugin

Post by *petermad »

If you want to try URL extension, uninstall/install the plugin to let it form the new detect string.

Or add:

Code: Select all

|EXT="URL"|EXT="__MHT"|EXT="__MHTML"
to your current detect string for EdgeViewer.


Moderator message from: petermad » 2023-09-21, 11:08 UTC

Changed the Topic title from "Modern HTML viewer plugin" to "EdgeViewer - Modern HTML viewer plugin"
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
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 »

Actually, I got lucky and managed to make the next step quickly, so let it be v1.0.3.

New features:
- Clean cache on TC exit (optional);
- Offline mode;
- MHT/MHTML support.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6496
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: EdgeViewer - Modern HTML viewer plugin

Post by *Horst.Epp »

2rg_software
Thanks.
Tested Clean Cache, works fine.

MHT doesn't work.
All examples are displayed fine in HTMLView plugin
but EdgeViewer only shows a blank page.
The samples are from here
https://www.fileformat.info/format/mime-html/sample/index.htm
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.2 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 »

MHT doesn't work.
It's hit or miss, unfortunately. You have stumbled on this issue. I guess old MHT files saved from IE are more prone to fail. The ones saved from Chrome are more likely to work.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6496
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: EdgeViewer - Modern HTML viewer plugin

Post by *Horst.Epp »

rg_software wrote: 2023-09-21, 16:52 UTC
MHT doesn't work.
It's hit or miss, unfortunately. You have stumbled on this issue. I guess old MHT files saved from IE are more prone to fail. The ones saved from Chrome are more likely to work.
That's right, these examples is working with your viewer.
But I prefer a solution which works for any mht files, as HTMLView does.
Btw. MS Edge itself has no problems to display my examples.
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.2 x64
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: EdgeViewer - Modern HTML viewer plugin

Post by *petermad »

Hint - for version 1.0.3 replace

Code: Select all

EXT="__MHT"|EXT="__MHTML"
with

Code: Select all

EXT="MHT"|EXT="MHTML"
in the detect string.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
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 »

Horst.Epp wrote: 2023-09-21, 17:53 UTC Btw. MS Edge itself has no problems to display my examples.
Afaik, Edge is doing it in IE compatibility mode, not supported in WebView2. At least, my attempts to load MHT ended with "file download" dialog. Let's hope the bug is going to be fixed at some point; maybe I'll myself take a look at that code eventually.
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 »

2rg_software
can plugin display Ctrl+Q dirs content like old HTMLView?
OS: Win10 | TC: latest x64
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6496
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: EdgeViewer - Modern HTML viewer plugin

Post by *Horst.Epp »

KozakMak wrote: 2023-09-22, 07:53 UTC 2rg_software
can plugin display Ctrl+Q dirs content like old HTMLView?
For me, it doesn't.
I have HTMLView and the EdgeViewer installed.
This way, HTMLView displays dir content.
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.2 x64
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: EdgeViewer - Modern HTML viewer plugin

Post by *petermad »

For me, it doesn't.
I have HTMLView and the EdgeViewer installed.
This way, HTMLView displays dir content.
The same here.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply