Skip to content

joshraphael/highlightjs-rascript

Repository files navigation

highlightjs-rascript

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:

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)

About

highlight.js syntax definition for RATools DSL, RAScript

Topics

Resources

License

Stars

Watchers

Forks

Packages