This is a small app, providing static files to have a frontend to format your code so you can paste it with styles to places like word documents.
Copying rich text has some pain-points with firefox, if you're not a old grown firefox user and you experience pain, use a chromium powered browser like brave, edge or chrome
Visit this github page to have a go. Everything stays inside your browser, if you are concerned about security and code leaking check out the container section to host it yourself.
This app is also built as a nginx-alpine
container image for arm64
and amd64
platforms. It's available on github container registry. The container will expose it static file server http interface on port 80.
To use it:
docker run -p 8000:80 ghcr.io/somehowchris/planetb-syntax-highlighter:0.1.10
This will start the container and open it to your network on port
8000
This app is built with rust and wasm-webpack. Dependent code such as the SyntaxHighlighter
is copied from the google archive and as is in JS. If you would like to know more about it head to this readme page
When building for the first time, ensure to install dependencies first.
yarn install
yarn run build
yarn run dev