this post was submitted on 08 Apr 2025
32 points (88.1% liked)

Linux

53424 readers
626 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I have wondered many times.

Of course I can always use a browser but it's overkill.

The same goes for yad or zenity, they pull in webkit which is a full-fledged browser engine, and at least yad does not have an offline mode.

I just want to look at some local HTML (incl. images) & CSS styling.

top 16 comments
sorted by: hot top controversial new old
[–] atzanteol@sh.itjust.works 30 points 2 weeks ago

Of course I can always use a browser but it's overkill.

No, it's exactly what you want.

[–] racketlauncher831@lemmy.ml 14 points 2 weeks ago

Do you just want to see the text content of a HTML file? - a text editor

Do you want most, if not all, HTML tags to be rendered as pretty graphical shapes?

Do you want the text have proper fonts?

Styles? You need something to parse CSS files.

What about dynamically generated content like ten smiley faces? You need a JavaScript engine.

Do you also want to see iframes? You need it to be capable of sending XHR requests.

What if it references to a piece of WebAssembly?

It's way more complicated than you anticipated.

[–] tom@jlai.lu 13 points 2 weeks ago
[–] domi@lemmy.secnd.me 6 points 2 weeks ago (1 children)

Maybe an e-book reader like KOReader? https://flathub.org/apps/rocks.koreader.KOReader

Plenty of them support local HTML.

[–] juliebean@lemm.ee 1 points 2 weeks ago

probably most of them do. epubs are mostly html after all.

[–] Drito@sh.itjust.works 6 points 2 weeks ago

You can also use a light browser such as Qutebrowser.

[–] D_Air1@lemmy.ml 5 points 2 weeks ago (1 children)

Believe it or not. kde's khelpcenter is what I have been using. Not sure if it includes images, but it renders simple html files and according to the Arch package. It is only like 7 MiB. Way better and faster than using a whole browser, but doesn't really support javascript obviously.

[–] A_norny_mousse@feddit.org 4 points 2 weeks ago

Thanks! Unfortunately my system is not KDE so it would pull in too much.

yelp (help for gnome) can render HTML, too.

I've been trying different things; in the end I guess something like yad or zenity is still the best. netsurf is really fast but I don't know how to style it as a viewer without a toolbar/urlbar.

I'd love to find a simple frontend to litehtml.

[–] JubilantJaguar@lemmy.world 4 points 2 weeks ago

weasyprint will convert it to PDF. I use it in a script to make my emails readable offline.

[–] MonkderVierte@lemmy.ml 4 points 2 weeks ago* (last edited 2 weeks ago)

Dillo? Or terminal? Then lynx or links2.

[–] inawhilecrocodile@lemmy.ml 3 points 1 week ago

Netsurf uses GTK, it's own html 5, css 2 engine and the install size is 6mb not including gtk.

https://packages.debian.org/bookworm/netsurf-gtk

https://www.netsurf-browser.org/

[–] cerement@slrpnk.net 2 points 2 weeks ago* (last edited 2 weeks ago)

Offpunk

(technically a console browser – Debian installed size 352 KB)

[–] zyberlex@lemmygrad.ml 2 points 1 week ago

FWIW "just displaying html" is one of those can of worms type problems that looks easy enough to start making but actually impossible to do fully correct.

You want something thats doing a WebView, so if not a Firefox then maybe one of the lighter weight ones like Falkon or Gnome Web etc.

[–] cy_narrator@discuss.tchncs.de 1 points 1 week ago* (last edited 1 week ago)

A more lightweight browser?

You gotta understand, browsers are designed to be HTML parsers. You can write an HTML file and double click to open in browser so your only option is a web browser.

Some browsers are certainly light weght than others, find the one that suits your need and use it

[–] BaumGeist@lemmy.ml 1 points 2 weeks ago

litehtml looks promising, but I can't vouch for it

[–] Psythik@lemm.ee 1 points 1 week ago

Notepad++ in WINE