Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/serjan-nasredin/toit-highlight

Toit language grammar for highlight.js
https://github.com/serjan-nasredin/toit-highlight

highlight-js toit toit-language

Last synced: 2 months ago
JSON representation

Toit language grammar for highlight.js

Awesome Lists containing this project

README

        

# Toit Programming Language grammar for [highlight.js](https://highlightjs.org/)

## Usage

Simply include the Highlight.js library in your webpage or Node app, then load this module.

### Static website or simple usage

Simply load the module after loading Highlight.js.
You'll use the minified version found in the dist directory.
This module is just a CDN build of the language,
so it will register itself as the Javascript is loaded.

```html

hljs.highlightAll();

```

### Using directly from the UNPKG CDN

```html

```

- More info: .

### With Node or another build system

```javascript
var hljs = require("highlight.js");
var hljsToit = require("highlightjs-toit");

hljs.registerLanguage("toit", hljsToit);
hljs.highlightAll();
```

## Official resources:

- The official website for the Highlight.js library is ;
- The Highlight.js GitHub project: ;
- Author: Serzhan Nasredin ;
- Learn more about Toit: .