https://github.com/highlightjs/highlightjs-zenscript
Zenscript language grammar for Highlight.js
https://github.com/highlightjs/highlightjs-zenscript
Last synced: 4 months ago
JSON representation
Zenscript language grammar for Highlight.js
- Host: GitHub
- URL: https://github.com/highlightjs/highlightjs-zenscript
- Owner: highlightjs
- License: mit
- Created: 2021-04-04T19:36:26.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-04T19:58:30.000Z (about 4 years ago)
- Last Synced: 2024-05-02T01:55:54.514Z (about 1 year ago)
- Language: JavaScript
- Size: 63.5 KB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ZenScript - a language grammar for highlight.js
 
 ## 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
If you're using Node / Webpack / Rollup / Browserify, etc, simply require the language module, then register it with Highlight.js.
```javascript
var hljs = require('highlight.js');
var hljsZenscript = require('highlightjs-zenscript');hljs.registerLanguage("zenscript", hljsZenscript);
hljs.highlightAll();
```## License
Highlight.js is released under the MIT License. See [LICENSE][1] file
for details.### Author
Jared Luboff
## Links
- The official site for the Highlight.js library is .
- The Highlight.js GitHub project:
- Learn more about ZenScript:[1]: https://github.com/highlightjs/highlightjs-zenscript/blob/master/LICENSE