Suckless pastebin if you will
  • HTML 65.7%
  • CSS 34.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-09 16:23:13 +02:00
static init 2026-07-09 16:23:13 +02:00
Caddyfile init 2026-07-09 16:23:13 +02:00
prism.css init 2026-07-09 16:23:13 +02:00
prism.js init 2026-07-09 16:23:13 +02:00
README.md init 2026-07-09 16:23:13 +02:00
viewer.html init 2026-07-09 16:23:13 +02:00

PrismJS snipper viewer

Simple wrapper using PrismJS to highlight statically served files

How to use

Modify the Caddyfile to use your domain and place files that you want available in /static, then run caddy run --config Caddyfile. Congratulations, you now have a pretty file viewer on your.domain/pretty/your.file.

Warning

All files that you place in the same directory as the Caddyfile will be accessible via the file server, so make sure you don't have anything private there

Optionally you can also:

  • minify viewer.html and prism.css
  • get your own prism.js from https://prismjs.com/download and highlight your favourite languages
    • if your languages don't have extensions equal to their name, you also have to edit the extensions dictionary in viewer.html on line 86