Skip to content

highlightjs/highlightjs-riscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Highlight.js grammar for Riscript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published