Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sdm-lang/highlightjs-sdml
Highlight.js definition for SDML
https://github.com/sdm-lang/highlightjs-sdml
highlightjs sdml
Last synced: about 2 months ago
JSON representation
Highlight.js definition for SDML
- Host: GitHub
- URL: https://github.com/sdm-lang/highlightjs-sdml
- Owner: sdm-lang
- License: other
- Created: 2023-08-08T17:16:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-17T20:48:00.000Z (about 1 year ago)
- Last Synced: 2023-11-17T21:38:22.716Z (about 1 year ago)
- Topics: highlightjs, sdml
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SDML language highlighter for highlight.js
![SDML Logo Text](https://raw.githubusercontent.com/sdm-lang/.github/main/profile/horizontal-text.svg)
## 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.initHighlightingOnLoad();
```
### 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('highlightjs');
var hljsChaos = require('highlightjs-chaos');hljs.registerLanguage("chaos", hljsChaos);
hljs.initHighlightingOnLoad();
```## License
This package is released under the Apache License, Version 2.0. See LICENSE file for details.
## Changes
TBD
## Development
https://highlightjs.readthedocs.io/en/latest/language-contribution.html
https://github.com/highlightjs/highlight.js/blob/master/extra/3RD_PARTY_QUICK_START.md## Changes
TBD