Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 879 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 879 Bytes

Highlight.js ArkTS support

The Highlight.js plugin for HarmonyOS's ArkTS

Online Demo: https://harmonyos-dev.github.io/aigc-harmonyos-sample/

Static website or simple usage

<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/[email protected]/src/languages/arkts.js"></script>

With Node

var hljs = require('highlightjs');
var hljsArkts = require('@harmonyos-dev/highlightjs-arkts');

hljs.registerLanguage('arkts', hljsArkts);
hljs.highlightAll();

TODOs:

  • publish to npm
  • rebuild project
  • ...

License

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.