5 ms·
I was looking around for a pastebin a while back, and I realized that a self-hosted pastebin is way too much overhead for a simple problem: easily serving possi
by fiddlerwoaroof 3y ago
I was looking around for a pastebin a while back, and I realized that a self-hosted pastebin is way too much overhead for a simple problem: easily serving possibly-highlighted rich text to people. I already have an editor I like for _writing_, so the problem becomes a matter of hooking into the editor’s syntax highlighting to generate equivalent JavaScript. A quick htmlize + tramp hack later, I could serve my current emacs buffer with the world:
https://fwoar.co/pastebin/3daaf7ce49ca221702c70b0d10ac5caec8962b78.el*.html https://fwoar.co/pastebin/3daaf7ce49ca221702c70b0d10ac5caec8...
- chalsprhebaodu 3y agoSorry for the unrelated question. What theme is used for the syntax highlighted on that snippet?
- cmdlineluser 3y agoLooks similar to Solarized Dark. https://github.com/altercation/solarized https://github.com/altercation/solarized
- fiddlerwoaroof 3y agoThe colors are mostly from zenburn https://github.com/fiddlerwoaroof/dotfiles/blob/master/emacs.d/lisp/fwoar-zenburn-theme.el https://github.com/fiddlerwoaroof/dotfiles/blob/master/emacs...