The Highlight.js plugin for HarmonyOS's ArkTS
Online Demo: https://harmonyos-dev.github.io/aigc-harmonyos-sample/
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release/build/highlight.min.js"></script>
<script
type="text/javascript"
src="https://cdn.jsdelivr.net/npm/@harmonyos-dev/highlightjs-arkts@0.0.5/src/languages/arkts.js"></script>
var hljs = require('highlightjs');
var hljsArkts = require('@harmonyos-dev/highlightjs-arkts');
hljs.registerLanguage('arkts', hljsArkts);
hljs.highlightAll();
- publish to npm
- rebuild project
- ...
Highlight.js is released under the BSD 3-Clause License. See LICENSE file for details. Highlightjs-arkts is released under the MIT License. See LICENSE file for details.