From d1c56af5a452b4d413984205ced681627996f925 Mon Sep 17 00:00:00 2001 From: csehviktor Date: Fri, 1 Aug 2025 22:01:19 +0200 Subject: [PATCH] update readme --- README.md | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ad58eb1..8647807 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,28 @@ # pastebin -## Themes +a simple and lightweight pastebin service written in go and templ + +## Usage + +``` +$ ./pastebin + +Usage: pastebin [-addr ] [-max-size ] + +Options: + -addr string + port to listen on (default ":3000") + -max-size int + maximum size of a paste in bytes (default 32kB) +``` + +## Highlighting + +To get syntax highlighting, you must add the file extension at the end of your paste URL: `/.` + +Supported languages can be found [here](https://github.com/alecthomas/chroma/tree/master?tab=readme-ov-file#supported-languages) + +### Themes +Themes can be applied by specifying in the URL: `/./` + [List of available themes](https://github.com/alecthomas/chroma/tree/master/styles)