An open API service indexing awesome lists of open source software.

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

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