Syntax highlight server for solusipse/fiche.

Piotr Czajkowski ec0eee3b35 Less is better 3 роки тому
.github e12abc3c58 Added actions 4 роки тому
html f8d46ad872 Initial commit 4 роки тому
testFiles 8729f93d02 Added HTML 4 роки тому
.deepsource.toml 394d3a7126 Add .deepsource.toml 3 роки тому
LICENSE.md b963b7a9bf License and readme 4 роки тому
README.md 7caf6a1b88 Added DeepSource badge 3 роки тому
detectLanguage.go 8729f93d02 Added HTML 4 роки тому
detectLanguage_test.go 8729f93d02 Added HTML 4 роки тому
generateHTML.go bace62349e Always check errors 3 роки тому
go.mod 15c205f1bf Correction 4 роки тому
go.sum f8d46ad872 Initial commit 4 роки тому
server.go ec0eee3b35 Less is better 3 роки тому

README.md

ficheSyntaxHighlight

DeepSource

I'm using the great solusipse/fiche. It generates text files, but I want syntax highlighting and line numbers. So I've created this server.

It's using alecthomas/chroma for generating HTML files with syntax highlighting, but language detection is my own creation as chroma's one doesn't detect what I want.

By default you'll be served with HTML version of your paste, if you want TXT then simply add /t to the link, like http://localhost/xxxx/t.

fiche's author provides his own solution. If you're not performance freak (it generates HTML with every request, not once like mine, plus it's Python) and are not afraid of Python and Flask on your server it could be better solution for you.

This project was created mainly for fun, so don't expect much;)