Skip to content

A Web-App written in Rust with Yew, using the same SyntaxHighlighter from Google Code Archive as planetb.ca

Notifications You must be signed in to change notification settings

somehowchris/planetb-syntax-highlighter

Repository files navigation

PlanetB SyntaxHighlighter

Open in Gitpod

About

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.

Container

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

🚴 For Developers

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

🛠️ Build

When building for the first time, ensure to install dependencies first.

yarn install
yarn run build

🔬 Serve locally

yarn run dev

About

A Web-App written in Rust with Yew, using the same SyntaxHighlighter from Google Code Archive as planetb.ca

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

Packages