Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/serjan-nasredin/toit-highlight
- Owner: serjan-nasredin
- License: gpl-3.0
- Created: 2021-12-25T20:40:04.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-05T19:09:22.000Z (over 2 years ago)
- Last Synced: 2024-07-30T20:54:55.723Z (5 months ago)
- Topics: highlight-js, toit, toit-language
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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: .