https://github.com/spotandjake/grain-github-highlight
Github syntax highlighting for grain lang
https://github.com/spotandjake/grain-github-highlight
chrome-extension github grain syntax
Last synced: 2 months ago
JSON representation
Github syntax highlighting for grain lang
- Host: GitHub
- URL: https://github.com/spotandjake/grain-github-highlight
- Owner: spotandjake
- License: mit
- Created: 2025-02-13T21:32:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-21T05:34:46.000Z (over 1 year ago)
- Last Synced: 2025-02-21T06:26:55.439Z (over 1 year ago)
- Topics: chrome-extension, github, grain, syntax
- Language: TypeScript
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Github Grain Highlight
This is a small chrome extension that enables syntax highlighting on Github.com for [grain lang](https://grain-lang.org/).
## Installing
The extension can be installed from the [chrome web store](https://chromewebstore.google.com/detail/grain-syntax-highlighter/feljoccdillnkkbkpjanfabndijdndgp), or packaged from the source repo and installed manually.
## Building
```bash
npm ci # Install dependencies
npm run build # Build the extension
npm run pack # Pack the extension into a zip
```
## How it works
This extension works completely locally, it injects a content script that identifies grain code both in markdown codeblocks and grain files and uses [Shiki](https://shiki.style/) to perform syntax highlighting.
### Other languages
While this extension currently is built specifically for grain it should be fairly easy to adjust to any other language with a textmate grammar, if you're interested in this feel free to open an issue.
# TODO
+ Automate chrome web store release