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
User avatar
Dalai
Power Member
Power Member
Posts: 9943
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: EdgeViewer - Modern HTML viewer plugin

Post by *Dalai »

2rg_software
Did a quick check and it seems to work fine on XP. Maybe wait for other users to confirm before making an official release.

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

Re: EdgeViewer - Modern HTML viewer plugin

Post by *TychoBarfy »

Internal links in local markdown files don't work in EdgeViewer and MarkdownView.

Example:

Code: Select all

1. [How-To](#how-to)
...
...
## How-To

Some text...
Using EdgeViewer I get following message, when I click on such kind of link to header in md file.

Code: Select all

The file was not found.
It may have been moved, edited, or deleted.
ERR_FILE_NOT_FOUND
Right clicking on the link and choosing "Copy link", I get something like "http://local.example/PATH/TO/#topic-1" with OfflineMode=0 and 1 in edgeviewer.ini.
In MarkdownView there happens nothing when clicking on the link and I get "file:///DRIVELETTER:/PATH/TO/#topic-1" when copying link, no matter whether ForceOffline=0 or 1 in MarkdownView.ini.

Note: There is NO file name and extension in the path of viewed README.md before #topic-1 in both EdgeViewer and MarkdownView.

Download Example_md.zip

Using MarkdownView 2.5 x64 and EdgeViewer 1.0.7.0 x64, Commander 11.02 x64 on Windows 11 23H2 22631.2861 x64.
User avatar
rg_software
Member
Member
Posts: 140
Joined: 2009-08-06, 12:59 UTC
Location: Aizu-Wakamatsu, Japan

Re: EdgeViewer - Modern HTML viewer plugin

Post by *rg_software »

Doesn't sound like an easy fix, will create a task, thanks!
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Re: EdgeViewer - Modern HTML viewer plugin

Post by *Matthias030 »

Dear all,

I like the effort making a new HTML viewer based on the current Chromium based browser engine. In the past I was using the good old HTMLViewer plugin.
I work as a system administrator and use this plugin to have an insight into html documents for IT-security reasons. This gives me a HTML layouted view of the document instead of opening HTML files inside an text editor.

I use it in front of opening unknown or "suspicious" files in native browsers like Chrome, Edge, Firefox,... Do you have any suggestions for hardening this plugin regarding secure view of html files of "unknown sources? Is it more safe to use this plugin instead of well-configured external browsers?

And do you think EdgeView is more or less secure than the old HTMLView plugin?

Thanks for feedback 😊

Matthias
User avatar
Hacker
Moderator
Moderator
Posts: 13141
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: EdgeViewer - Modern HTML viewer plugin

Post by *Hacker »

Matthias030,
Well, for text-only viewing, TC's internal HTML mode of the Lister (F3) would be a good choice.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
MaxX
Power Member
Power Member
Posts: 1166
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: EdgeViewer - Modern HTML viewer plugin

Post by *MaxX »

2Matthias030
You may use offine mode or set proxy to 0.0.0.0, that would be enough for most cases.
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Re: EdgeViewer - Modern HTML viewer plugin

Post by *Matthias030 »

Dear MaxX and Hacker,

Thank you both for this information. I am now using the offline switch in edgeviewer.ini and also set proxy to 0.0.0.0 by a paramater from here:
https://peter.sh/experiments/chromium-command-line-switches/

EdgeView is slower in loading times compared to the old HTMLVIew. On the other hand, I think it will become more compatible with newer HTML files in the future.

@Hacker: You're right. The TC-internal HTML viewer is the most secure way to review HTML files. Unfortunately it is displayed without any layout / design information and stripped down to the "real" content only. Sometimes this is a little to less for me ;)

Greetings,
Matthias
User avatar
MaxX
Power Member
Power Member
Posts: 1166
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: EdgeViewer - Modern HTML viewer plugin

Post by *MaxX »

2Matthias030
You may also like this thing
viewtopic.php?p=444083#p444083
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
Matthias030
Senior Member
Senior Member
Posts: 423
Joined: 2007-03-04, 10:48 UTC
Location: Berlin

Re: EdgeViewer - Modern HTML viewer plugin

Post by *Matthias030 »

MaxX wrote: 2024-04-08, 21:27 UTC 2Matthias030
You may also like this thing
viewtopic.php?p=444083#p444083
Thank you. I have taken these parameters into my ini file :-)
parktaije
New Member
New Member
Posts: 1
Joined: 2024-07-21, 19:13 UTC

Re: EdgeViewer - Modern HTML viewer plugin

Post by *parktaije »

could I preserve the zoom-in state?
I did zoom-in html files in the Quick View Panel,
and when I clicked the next file, It return to not zoom-in state.
User avatar
rg_software
Member
Member
Posts: 140
Joined: 2009-08-06, 12:59 UTC
Location: Aizu-Wakamatsu, Japan

Re: EdgeViewer - Modern HTML viewer plugin

Post by *rg_software »

parktaije wrote: 2024-07-21, 19:28 UTC could I preserve the zoom-in state?
I guess there is no built-in functionality I can leverage, so this is something I have to implement myself. Will consider!
User avatar
AntonyD
Power Member
Power Member
Posts: 1554
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: EdgeViewer - Modern HTML viewer plugin

Post by *AntonyD »

2rg_software
Fortunately, I could get it, so please check out this release.
If I see it correctly - some commits were done inside the master branch of Markdown plug.
So wouldn't it be right to release version 2.5.1?
#146217 personal license
AkulaBig
Power Member
Power Member
Posts: 528
Joined: 2021-09-09, 17:28 UTC

Re: EdgeViewer - Modern HTML viewer plugin

Post by *AkulaBig »

I can't configure the plugin in Win7. TC 11.50b3. I set the path to WebView2 differently. I always get an error.

Code: Select all

; remove UserDir setting to use the plugin directory
UserDir=%USERPROFILE%
; UserDir=c:\Users\admin\AppData\Local\Microsoft\Edge\User Data\Default\

; uncomment to point to your fixed version Edge 
; BrowserExecutableX86Folder=c:\Program Files (x86)\Microsoft\Edge\Application\109.0.1518.140\EBWebView\x86\
; BrowserExecutableX64Folder=c:\Program Files (x86)\Microsoft\Edge\Application\109.0.1518.140\EBWebView\x64\
Below are the comments for the options I tried.
[img]https://i.ibb.co/pLddrLZ/image.png[/img]
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: EdgeViewer - Modern HTML viewer plugin

Post by *petermad »

Do you mean: "If I set the path to WebView2 differently, then I always get an error." ?

And if so - what path have you tried to use?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
AkulaBig
Power Member
Power Member
Posts: 528
Joined: 2021-09-09, 17:28 UTC

Re: EdgeViewer - Modern HTML viewer plugin

Post by *AkulaBig »

petermad wrote: 2024-10-29, 17:47 UTC Do you mean: "If I set the path to WebView2 differently, then I always get an error." ?
No. This way doesn't work either. Although this is the path to WebView2 Edge installed in Win7.
BrowserExecutableX86Folder=c:\Program Files (x86)\Microsoft\Edge\Application\109.0.1518.140\EBWebView\x86\
BrowserExecutableX64Folder=c:\Program Files (x86)\Microsoft\Edge\Application\109.0.1518.140\EBWebView\x64\
I tried it without the slash.
petermad wrote: 2024-10-29, 17:47 UTC And if so - what path have you tried to use?
I also tried placing EmbeddedBrowserWebView.dll in the plugin folder. I tried to specify the path not to EmbeddedBrowserWebView.dll, but to the top-level folder WebView2. Which has the following structure: WebView2\EBWebView\x64\EmbeddedBrowserWebView.dll. The plugin does not work in Win7. And in Win11 it works without configuration. Edge is installed everywhere.
Post Reply