Suckless pastebin if you will
- HTML 65.7%
- CSS 34.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| static | ||
| Caddyfile | ||
| prism.css | ||
| prism.js | ||
| README.md | ||
| viewer.html | ||
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.htmlandprism.css - get your own
prism.jsfrom 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
extensionsdictionary inviewer.htmlon line86
- if your languages don't have extensions equal to their name, you also have to edit
the