highlight.js syntax definition for RATools DSL, RAScript
Available on NPM and Github Packages
Directly import the distribution library and have RAScript autodetected
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.1/highlight.min.js"></script>
<script src="https://raw.githubusercontent.com/joshraphael/highlightjs-rascript/refs/heads/main/dist/rascript.min.js"></script>
<script type="text/javascript">
hljs.highlightAll();
</script>
var hljs = require('highlight.js');
var rascript = require('@joshraphael/highlightjs-rascript');
hljs.registerLanguage("rascript", rascript);
hljs.highlightAll();
Title | Command | Parameters | Description |
---|---|---|---|
Test | make test |
None | Test the rascript highlightjs module |
Generate | make gen |
None | Generate the distribution Javascript of the rascript highlightjs pacakge |
Upgrade rascript-syntax | make upgrade |
None | Upgrade the rascript-syntax version |
Run | make run |
None | Build and start simple http webserver with example RAScript syntax (using auto-detection) |