@smwcentral/highlightjs-asar

1.0.0 • Public • Published

65c818 ASM syntax for highlight.js

Latest Stable Version License

The syntax definition used by SMW Central for highlighting Asar's dialect of 65c816 ASM.

Usage

Simply include the Highlight.js library in your webpage or Node app, then load this module.

Static website or simple usage

Simply load the module after loading Highlight.js. You'll use the minified version found in the dist directory. This module is just a CDN build of the language, so it will register itself as the JavaScript is loaded.

<script src="/path/to/highlight.min.js"></script>
<script src="/path/to/asar.min.js"></script>
<script>hljs.highlightAll();</script>

Using directly from the UNPKG CDN

<script src="https://unpkg.com/@smwcentral/highlightjs-asar@1.0.0/dist/asar.min.js"></script>

With Node or another build system

If you're using Node / Webpack / Rollup / Browserify, etc, simply require the language module, then register it with Highlight.js.

var hljs = require('highlight.js');
var hljsAsar = require('highlightjs-asar');

hljs.registerLanguage('asar', hljsAsar);
hljs.highlightAll();

Package Sidebar

Install

npm i @smwcentral/highlightjs-asar

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

86.1 kB

Total Files

9

Last publish

Collaborators

  • telinc1