highlightjs-rascript

September 4, 2025 ยท View on GitHub

highlight.js syntax definition for RATools DSL, RAScript

GitHub License test release GitHub Tag GitHub repo size

Available on NPM and Github Packages

Setup

Directly import the distribution library and have RAScript autodetected

Static Website

<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>

Node

var hljs = require('highlight.js');
var rascript = require('@joshraphael/highlightjs-rascript');

hljs.registerLanguage("rascript", rascript);
hljs.highlightAll();

Commands:

TitleCommandParametersDescription
Testmake testNoneTest the rascript highlightjs module
Generatemake genNoneGenerate the distribution Javascript of the rascript highlightjs pacakge
Upgrade rascript-syntaxmake upgradeNoneUpgrade the rascript-syntax version
Runmake runNoneBuild and start simple http webserver with example RAScript syntax (using auto-detection)