highlight-bigfix-actionscript

1.0.3 • Public • Published

Build Status Coverage Status

highlight-bigfix-actionscript

An HTML syntax highlighter for BigFix ActionScript.

Usage

To highlight some script:

var highlightActionScript = require('highlight-bigfix-actionscript');
var html = highlightActionScript('run patch.exe');

The above command will result in:

<span class="bf-actionscript-command">run</span> patch.exe

Relevance substitutions are also colored. This is done using highlight.js with hljs-bigfix-relevance. For example:

highlightActionScript('appendfile {1+1}');

This will result in:

<span class="bf-actionscript-command">appendfile</span> {<span class="bf-actionscript-substitution"><span class="hljs-number">1</span>+<span class="hljs-number">1</span></span>}

Package Sidebar

Install

npm i highlight-bigfix-actionscript

Weekly Downloads

4

Version

1.0.3

License

Apache-2.0

Last publish

Collaborators

  • bigfix