🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@smwcentral/highlightjs-asar

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smwcentral/highlightjs-asar

highlight.js syntax definitions for Asar and 65c816 ASM

1.0.0
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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>
  • More info: https://unpkg.com

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();

Keywords

highlight.js

FAQs

Package last updated on 26 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts