Preview HTML-files without extension

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
terra
Posts: 2
Joined: Tue Nov 01, 2022 12:07 pm

Preview HTML-files without extension

Post by terra »

How to preview without any further software HTML-files that have no extension?
(BTW: The files are not renameable)
horst.epp
Posts: 1443
Joined: Fri Apr 04, 2014 3:24 pm

Re: Preview HTML-files without extension

Post by horst.epp »

terra wrote: Tue Nov 01, 2022 3:14 pm How to preview without any further software HTML-files that have no extension?
(BTW: The files are not renameable)
I you have installed one of the html viewer plugins (HTMLView or Ulister)
select your file and use the TC plugins menu to select the viewer.
In my case Ulister starts automatically for files with no extension using f3 or Quick View.
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Preview HTML-files without extension

Post by NotNull »

Everything uses the same mechanismfor previewing files as File Explorer.
Both use the file extension as deciding factor which preview handler to use.

It is straightforward to make Everything/File Explorer show files without extension with a specific previewer.
But that means that *all* files without extension will use this same preview handler.

So the question boils down to:

Do you want all files without extension to be viewed as plain text or as formatted html?


horst.epp wrote: Tue Nov 01, 2022 6:34 pmTC plugins
Almost the right forum, Horst :D

Tip: I use different board styles for each forum. TC has 4 different styles to choose from (Everything 1).
That makes them easier to distinguish from each other.
horst.epp
Posts: 1443
Joined: Fri Apr 04, 2014 3:24 pm

Re: Preview HTML-files without extension

Post by horst.epp »

NotNull wrote: Tue Nov 01, 2022 8:23 pm
horst.epp wrote: Tue Nov 01, 2022 6:34 pmTC plugins
Almost the right forum, Horst :D

Tip: I use different board styles for each forum. TC has 4 different styles to choose from (Everything 1).
That makes them easier to distinguish from each other.
:o :shock: ;)
terra
Posts: 2
Joined: Tue Nov 01, 2022 12:07 pm

Re: Preview HTML-files without extension

Post by terra »

NotNull wrote: Tue Nov 01, 2022 8:23 pm It is straightforward to make Everything/File Explorer show files without extension with a specific previewer.
But that means that *all* files without extension will use this same preview handler.

So the question boils down to:

Do you want all files without extension to be viewed as plain text or as formatted html?
Thanks for your answer NotNull

As asked I want to use ONLY in Everything:
No extension -> then HTML render.

If this is not possible or will not be integrated by 'void' as exception in Everything (many thanks for your stunning software!!!), what possibility is there that is 'straightforward' as you wrote?

---
((Total Commander: Thanks to horst.epp too, for the 'by the way' hints for Total Commander. There I had already installed as lister plugins HtmlView.wlx and secondarily uLister.wlx64. Works great as previewer on HTML files and many other filetypes too! HTML-Files without extension are default rendered as real web pages. Great!)).
therube
Posts: 4955
Joined: Thu Sep 03, 2009 6:48 pm

Re: Preview HTML-files without extension

Post by therube »

I want to use ONLY in Everything:
No extension -> then HTML render.
Everything uses the same mechanism for previewing files as File Explorer.
IOW, if (Windows) Explorer cannot render a particular file type, then Everything (which is relying on existing services rather then having its' own renderer) wouldn't be able to do it.


That said, a default "render everything" (render Everything) renderer <hmm> might be nice (maybe).
Something along the lines of the old DOS List (Vernon D. Buerg) program, that could show "everything" (Everything ?).
And while it may not render everything "properly" (or even remotely "properly"), the fact that it could show everything (in some textual, switchable to binary) manner - regardless of any system filters that might exist...

Preview: Hex/Text Viewer for Undefined File Types
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Preview HTML-files without extension

Post by NotNull »

terra wrote: Wed Nov 02, 2022 6:13 pm f this is not possible or will not be integrated by 'void' as exception in Everything (many thanks for your stunning software!!!), what possibility is there that is 'straightforward' as you wrote?
As this is not possible in just Everything:

To set the preview for files without extension to render as html for the current user:
  • Start CMD.exe
  • Run the following command:

    Code: Select all

    reg.exe add "HKCU\Software\Classes\.\shellex\{8895B1C6-B41F-4C1C-A562-0D564250836F}{f8b8412b-dea3-4130-b36c-5e8be73106ac}" /ve /d {f8b8412b-dea3-4130-b36c-5e8be73106ac}
To remove this setting:

Code: Select all

reg.exe delete "HKCU\Software\Classes\." 




To set the preview for files without extension to render as html for all users on this system:
  • Start CMD.exe elevated ("Run as administrator")
  • Run the following command:

    Code: Select all

    reg.exe add "HKLM\Software\Classes\.\shellex\{8895B1C6-B41F-4C1C-A562-0D564250836F}{f8b8412b-dea3-4130-b36c-5e8be73106ac}" /ve /d {f8b8412b-dea3-4130-b36c-5e8be73106ac}
To remove this setting:

Code: Select all

reg.exe delete "HKLM\Software\Classes\." 


therube wrote: Wed Nov 02, 2022 6:41 pm That said, a default "render everything" (render Everything) renderer <hmm> might be nice (maybe).
I like that idea! When no preview handler available: show as plain text.
Even if that may look like garbage (like an .exe file), the content might still give you pointers waht this file is about.

EDIT: Should have read the linked thread first ... there are side-effects.
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Preview HTML-files without extension

Post by void »

As NotNull has already found:

To show HTML preview of files with no extension:
  • From the Start menu, search for: regedit
  • Right click Registry Editor and click Run as administrator.
  • In the Registry Editor Navigate to:

    Code: Select all

    HKEY_CLASSES_ROOT\.\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}
    (Please create this key if it does not exist)
  • Set the (Default) data to:
    {f8b8412b-dea3-4130-b36c-5e8be73106ac}
Everything (and Windows Explorer) will now show HTML previews of files with no extension.



You may find the File Signature column useful, please try including the following in your search:
ext: add-column:file-signature
Post Reply