Skip to content

highlightjs/highlightjs-func

Repository files navigation

highlight.js syntax definition for FunC, Fift, and TL-B

test

Usage

If you're using webpack / rollup / browserify / node:

npm install highlightjs highlightjs-func
import hljs from 'highlight.js'
import hljsDefine from 'highlightjs-func'

hljsDefine(hljs)  // Installs all language definitions
// Now, do your thing!

If you're not using a build system and just want to embed this in your webpage:

<script type="text/javascript" src="/path/to/highlight.min.js"></script>
<script type="text/javascript" src="/path/to/func.min.js"></script>
<script type="text/javascript">
  hljs.highlightAll();
</script>

Useful links