Skip to content
Robot Framework
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md initial commit Aug 5, 2019
package.json
robot.js initial commit Aug 5, 2019

README.md

highlight.js syntax definition for Robot Framework.

For more about highlight.js, see https://highlightjs.org/

For more about Robot Framework, see https://robotframework.org/

Usage

Simply include the highlight.js script package in your webpage or node app, load up this module and apply it to hljs.

If you're not using a build system and just want to embed this in your webpage:

<script type="text/javascript" src="/path/to/highlight.pack.js"></script>
<script type="text/javascript" src="/path/to/highlightjs-robot/robot.js"></script>
<script type="text/javascript">
    hljs.registerLanguage('robot', window.hljsDefineRobot);
    hljs.initHighlightingOnLoad();
</script>

If you're using webpack / rollup / browserify / node:

var hljs = require('highlightjs');
var hljsDefineRobot = require('highlightjs-robot');

hljsDefineRobot(hljs);
hljs.initHighlightingOnLoad();

While Robot Framework supports multiple formats, currently only space sparated format is supported.

About the author

Find me at https://spage.fi

You can’t perform that action at this time.