https://github.com/highlightjs/highlightjs-robot
Robot Framework
https://github.com/highlightjs/highlightjs-robot
Last synced: 2 months ago
JSON representation
Robot Framework
- Host: GitHub
- URL: https://github.com/highlightjs/highlightjs-robot
- Owner: highlightjs
- License: bsd-3-clause
- Created: 2019-07-30T06:42:22.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-25T21:25:32.000Z (over 3 years ago)
- Last Synced: 2024-03-25T19:59:39.211Z (about 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 4
- Watchers: 7
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
`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:
```html
hljs.registerLanguage('robot', window.hljsDefineRobot);
hljs.highlightAll();```
If you're using webpack / rollup / browserify / node:
```javascript
var hljs = require('highlightjs');
var hljsDefineRobot = require('highlightjs-robot');hljsDefineRobot(hljs);
hljs.highlightAll();
```While Robot Framework supports [multiple formats](http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#supported-file-formats), currently only space sparated format is supported.
### About the author
Find me at https://spage.fi