1.0.3 • Published 8 years ago

highlight-bigfix-actionscript v1.0.3

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
8 years ago

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>}