https://github.com/somehowchris/planetb-syntax-highlighter
A Web-App written in Rust with Yew, using the same SyntaxHighlighter from Google Code Archive as planetb.ca
https://github.com/somehowchris/planetb-syntax-highlighter
code highlight planetb syntax wasm webassembly word
Last synced: about 2 months ago
JSON representation
A Web-App written in Rust with Yew, using the same SyntaxHighlighter from Google Code Archive as planetb.ca
- Host: GitHub
- URL: https://github.com/somehowchris/planetb-syntax-highlighter
- Owner: somehowchris
- Created: 2021-12-03T17:10:07.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-04-15T12:37:00.000Z (about 2 months ago)
- Last Synced: 2025-04-16T01:54:31.970Z (about 2 months ago)
- Topics: code, highlight, planetb, syntax, wasm, webassembly, word
- Language: Rust
- Homepage: https://highlighter.christof.weickhardt.ch
- Size: 7.96 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# PlanetB SyntaxHighlighter
[](https://gitpod.io/#https://github.com/somehowchris/planetb-syntax-highlighter)## 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 chromeVisit [this github page](https://somehowchris.github.io/planetb-syntax-highlighter/) to have a go. Everything stays inside your browser, if you are concerned about security and code leaking check out the [container section](#container) 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](./src/assets/js/highlighter/README.md)
### 🛠️ Build
When building for the first time, ensure to install dependencies first.
```
yarn install
``````
yarn run build
```### 🔬 Serve locally
```
yarn run dev
```