Skip to content

highlightjs/highlightjs-wgsl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WGSL grammar for highlightjs

Apache 2.0

Usage

Simply include the Highlight.js library in your webpage or Node app, then load this module. See the highlight.js usage page for more details.

Static website or simple usage

Load the module (found in the dist directory):

<script type="text/javascript" src="/path/to/highlight.min.js"></script>
<script type="text/javascript" src="/path/to/highlightjs-wgsl/dist/wgsl.min.js"></script>
<script type="text/javascript">
	hljs.highlightAll();
</script>

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.

var hljs = require('highlightjs');
var hljsWgsl = require('highlightjs-wgsl');

hljs.registerLanguage("wgsl", hljsWgsl);
hljs.highlightAll();

License

See the LICENSE 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.

About

Highlight.js grammar for WGSL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published