Skip to content

Latest commit

 

History

History
35 lines (32 loc) · 1.16 KB

README.md

File metadata and controls

35 lines (32 loc) · 1.16 KB

highlight.js grammar for riscript

Simple usage

Load this mode (you can find it under dist) and the css file (you can find it under css) after loading highlight.js For now I am still trying to get auto-detect to work, so you will need to add css class riscript to the code tag. A simple example is below

<head>
    ...
    <script src="/path/to/highlight.min.js"></script>
    <script src="/path/to/highlightjs-riscript/dist/riscript.min.js"></script>
    <link rel="stylesheet" href="/path/to/css/riscript.css">
    <script>
        hljs.highlightAll();
    </script>
    ...
</head>
<body>
    ...
    <pre>
        <code class="riscript">
        you code here
        </code>
    </pre>
    ...
</body>

License

highlight.js is released under BSD-3-Clause license, this grammar mode, RiScript and RiTa are released under the GPL license

Links