https://github.com/highlightjs/highlightjs-wgsl
Highlight.js grammar for WGSL
https://github.com/highlightjs/highlightjs-wgsl
Last synced: 4 months ago
JSON representation
Highlight.js grammar for WGSL
- Host: GitHub
- URL: https://github.com/highlightjs/highlightjs-wgsl
- Owner: highlightjs
- License: apache-2.0
- Created: 2024-02-20T05:07:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-21T02:36:43.000Z (over 1 year ago)
- Last Synced: 2024-12-28T10:47:50.553Z (6 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [WGSL](https://www.w3.org/TR/WGSL/) grammar for highlightjs
[](#license)
## Usage
Simply include the Highlight.js library in your webpage or Node app, then load this module.
See the [highlight.js usage](https://github.com/highlightjs/highlight.js#basic-usage) page
for more details.### Static website or simple usage
Load the module (found in the `dist` directory):
```html
hljs.highlightAll();
```
### 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 hljsWgsl = require('highlightjs-wgsl');hljs.registerLanguage("wgsl", hljsWgsl);
hljs.highlightAll();
```## License
See the [LICENSE](/LICENSE.md) file.
## Contribution
Contributions are welcome by pull request.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
licensed as above, without any additional terms or conditions.