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
TychoBarfy
Senior Member
Senior Member
Posts: 347
Joined: 2005-08-13, 15:13 UTC
Location: Berlin, Germany
Contact:

Re: EdgeViewer - Modern HTML viewer plugin

Post by *TychoBarfy »

Seems that there is still an issue. I get this error message on every html file, even without special chars using EdgeViewer.wlx64 in version 1.0.4. (i.e. index.html)
https://imageupload.io/6UO4PWW0a9pPb6I
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 »

TychoBarfy wrote: 2023-10-27, 17:58 UTC Seems that there is still an issue. I get this error message on every html file, even without special chars using EdgeViewer.wlx64 in version 1.0.4. (i.e. index.html)
https://imageupload.io/6UO4PWW0a9pPb6I
Is your drive T somehow speical (network share, etc.)? The "error 3" is unhelpful (most likely, "path not found" in this case), but I don't know how to reproduce it, so maybe I'll have to add more diagnostics and ask to try running this build.

What about html files in C: or non-html files somewhere? Also what about files in a directory with/without special chars?

PS: I found a similar case: a directory with an apostrophe in its name. I don't get the error 3, but a blank window instead.
TychoBarfy
Senior Member
Senior Member
Posts: 347
Joined: 2005-08-13, 15:13 UTC
Location: Berlin, Germany
Contact:

Re: EdgeViewer - Modern HTML viewer plugin

Post by *TychoBarfy »

rg_software wrote: 2023-10-28, 12:21 UTC
TychoBarfy wrote: 2023-10-27, 17:58 UTC Seems that there is still an issue. I get this error message on every html file, even without special chars using EdgeViewer.wlx64 in version 1.0.4. (i.e. index.html)
https://imageupload.io/6UO4PWW0a9pPb6I
Is your drive T somehow speical (network share, etc.)? The "error 3" is unhelpful (most likely, "path not found" in this case), but I don't know how to reproduce it, so maybe I'll have to add more diagnostics and ask to try running this build.

What about html files in C: or non-html files somewhere? Also what about files in a directory with/without special chars?

PS: I found a similar case: a directory with an apostrophe in its name. I don't get the error 3, but a blank window instead.
rg_software This picture was made on a SSD drive. I can reproduce the error on all my local partitions trying to view an index.html file, even on HDDs no matter whether the file sits in root or any other folder.
I don't use network shares. The error occurs with html, htm, xml, md, agoc and asciidoc files.

Code: Select all

11=%COMMANDER_PATH%\Plugins\wlx\EdgeViewer\EdgeViewer.wlx64
11_detect="EXT="HTM"|EXT="HTML"|EXT="XML"|EXT="MD"|EXT="MARKDOWN"|EXT="ADOC"|EXT="ASCIIDOC""
If I take a look into Configuration > Plugins > Lister Plugins EdgeViewer is not listed at all.
Same issue with EdgeViewer.wlx64 with date 2022-10-14.

If I start TC with a fresh INI and add EdgeViewer to Lister Plugins, it works perfectly (old and new version).

I will have to take a deeper look on what's causing this. May be one of the parallel installed Plugins.

I think, you'll get a report tomorrow.

System: Win 11 Pro 22H2 22631.2428 x64
TC 11.02RC4 x64
lezerogan2
Junior Member
Junior Member
Posts: 83
Joined: 2010-04-19, 15:50 UTC

Re: EdgeViewer - Modern HTML viewer plugin

Post by *lezerogan2 »

There is a minor and not critical issue.
I use the latest utility version of "Total updater", to alert if there is any TC plugin that has a new version.
Edge viewer is the only plugin with status "Unknown" in update-status column, saying it is not in the DB.

Win 10 home 64 bit. TC 11.01 64 bit. Edge-viewer 1.04.
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 »

Edge viewer is the only plugin with status "Unknown" in update-status column, saying it is not in the DB.
No idea how this tool works, will investigate. I see one trouble with the plugin, but it also seems that Updater doesn't maintain its plugin database anymore, so at least EdgeViewer has to be added to the database manually. BTW, I see quite many plugins with "unknown" status on my machine.
TychoBarfy
Senior Member
Senior Member
Posts: 347
Joined: 2005-08-13, 15:13 UTC
Location: Berlin, Germany
Contact:

Re: EdgeViewer - Modern HTML viewer plugin

Post by *TychoBarfy »

Whew, now I think I've got it finally.
At first I worked with my alternate TC configuration on an other drive (T:) and removed successively all Lister Plugins (not as much of it installed as in my standard configuration on drive C:), until only EdgeViewer was left and this was the moment, it started working. Restarted and tried to view the samples each time I removed the next Plugin.
In my alternate config I used the older version of EdgeViewer.
Then readded the former installed Plugins one by one and now it works.

But there was still an issue with the new EdgeViewer in the standard config on C:.
In my %USER_PROFILE% folder there was still a EBWebView folder.

So I compared edgeviewer.ini of the old and the new version and noticed, that there are some lines that I could comment.
And this is the actual contents of my edgeviewer.ini of EdgeViewer 1.0.4:

Code: Select all

[Extensions]
; should be uppercase to form the right detect string
HTML=HTM,HTML,XML
Markdown=MD,MARKDOWN
AsciiDoc=ADOC,ASCIIDOC
;URL=URL
MHTML=MHT,MHTML

; also show directory contents
Dirs=1
DirImageExt=jpg|jpeg|png|gif|svg|bmp

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

; remove UserDir setting to use the plugin directory
: Commented by me !!!!!!!!!!!!!!!!!
; Commenting it was my solution, I think.
;UserDir=%USERPROFILE%

; uncomment to point to your fixed version Edge 
; BrowserExecutableX86Folder=%USERPROFILE%\Edge32
: Uncommented and commented again by me !!!!!!!!!!!!!!!!!
; BrowserExecutableX64Folder=%USERPROFILE%\Edge64

; remove EBWebView cache on exit
CleanupOnExit=0

; do not allow accessing external resources
: Set it to 1 !!!!!!!!!!!!!!!!!
OfflineMode=1

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

[AsciiDoc]
; from the "asciidoctor" subfolder
CSS=asciidoctor.css
And this are the EdgeViewer lines in my ListerPlugins.ini:

Code: Select all

[ListerPlugins]
0=%COMMANDER_PATH%\Plugins\wlx\EdgeViewer\EdgeViewer.wlx64
0_detect="EXT="HTM"|EXT="HTML"|EXT="XML"|EXT="MD"|EXT="MARKDOWN"|EXT="ADOC"|EXT="ASCIIDOC"|EXT="MHT"|EXT="MHTML""
Have a nice Sunday everyone!
Last edited by TychoBarfy on 2023-10-29, 13:38 UTC, edited 1 time in total.
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 »

KozakMak wrote: 2023-10-26, 14:29 UTC
rg_software wrote: 2023-10-26, 12:57 UTC Anything in particular you are interested in?
Directory view support
Please check my quickfix build of the HTMLView-based markdown viewer. It can now be used instead of HTMLView: if the file you are opening is markdown, my code works, otherwise the control is passed to HTMLView, so it should work just like HTMLView.

I checked the directories are viewable. Also files like "á.htm" or "á.md" are displayable on my machine, so if it won't work for you, let me know your system/codepage AND whether the vanilla HTMLView works.
KozakMak
Senior Member
Senior Member
Posts: 372
Joined: 2021-05-24, 12:39 UTC
Location: UA

Re: EdgeViewer - Modern HTML viewer plugin

Post by *KozakMak »

2rg_software
on win11 works fine
I'll test it tomorrow on win7
OS: Win10 | TC: latest 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 »

lezerogan2 wrote: 2023-10-29, 07:50 UTC There is a minor and not critical issue.
I use the latest utility version of "Total updater", to alert if there is any TC plugin that has a new version.
Edge viewer is the only plugin with status "Unknown" in update-status column, saying it is not in the DB.

Win 10 home 64 bit. TC 11.01 64 bit. Edge-viewer 1.04.
Please check the latest version of the plugin (1.0.6). I added proper versioning there, so it should work with Updater.
You might need to add the plugin to your local database and supply it the compulsory Web ID ("wlx-edge-viewer"), and I guess the local name "EdgeViewer", but not sure.
KozakMak
Senior Member
Senior Member
Posts: 372
Joined: 2021-05-24, 12:39 UTC
Location: UA

Re: EdgeViewer - Modern HTML viewer plugin

Post by *KozakMak »

2rg_software
https://ibb.co/QKB1RJ7

ListerTitle= must be empty be default!
OS: Win10 | TC: latest 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 »

KozakMak wrote: 2023-10-29, 14:34 UTC 2rg_software
https://ibb.co/QKB1RJ7

ListerTitle= must be empty be default!
Do you mean I have to set the default settings like this?

Code: Select all

ListerTitle=
;ListerTitle=%TITLE - Lister
User avatar
petermad
Power Member
Power Member
Posts: 14853
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: EdgeViewer - Modern HTML viewer plugin

Post by *petermad »

Please check the latest version of the plugin (1.0.6). I added proper versioning there, so it should work with Updater.
The TotalUpdater user have to add edgeviewer.wlx and the wlx-edge-viewer to TotalUpdater's user database - see: https://tcmd.madsenworld.dk/TotalUpdater_edgeviewer.png

You have to use wlx-edge-viewer in the WEB field - I first tried with the full path: http://totalcmd.net/plugring/wlx-edge-viewer.html - but apparently TotalUpdater adds the path and extension itself.
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
KozakMak
Senior Member
Senior Member
Posts: 372
Joined: 2021-05-24, 12:39 UTC
Location: UA

Re: EdgeViewer - Modern HTML viewer plugin

Post by *KozakMak »

rg_software wrote: 2023-10-29, 16:11 UTC
Do you mean I have to set the default settings like this?

Code: Select all

ListerTitle=
;ListerTitle=%TITLE - Lister
exactly!
OS: Win10 | TC: latest x64
lezerogan2
Junior Member
Junior Member
Posts: 83
Joined: 2010-04-19, 15:50 UTC

Re: EdgeViewer - Modern HTML viewer plugin

Post by *lezerogan2 »

To petermad and rg_software:
Your suggestions fixed TotalUpdater display.
Thank you
Stoebi
Junior Member
Junior Member
Posts: 24
Joined: 2005-04-10, 15:16 UTC

Re: EdgeViewer - Modern HTML viewer plugin

Post by *Stoebi »

Good morning

I`ve installed version 1.0.6 few minutes ago. File is not found as soon as a » occurs in the file name. Example:
Horror » (06/25/2023).html. There were no problems with version 1.0.4.


Greetings Stöbi
Post Reply