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

https://github.com/theelectronwill/dotty-hljs

Scala3 for hljs
https://github.com/theelectronwill/dotty-hljs

dotty highlight-js hljs scala3

Last synced: about 1 year ago
JSON representation

Scala3 for hljs

Awesome Lists containing this project

README

          

# Scala 3 grammar for Highlight.js

## How to use

Add `scala3.js` to your webpage and register the language in hljs.

```html

hljs.registerLanguage('scala3', highlightDotty);
hljs.registerAliases('dotty', 'scala3');

```

Then use hljs as usual, e.g.
```html

enum ItWorks(val x: Boolean)

hljs.initHighlightingOnLoad();

```