Pygments lexer for Robot Framework test data.
Project description
This project implements a Pygments lexer for Robot Framework test data in plain text format. It is available as a separate plugin and included in Pygments 1.6 and newer.
What is Pygments
Pygments is a generic library/tool for syntax highlighting. It is used by many different applications and wikis.
What is Robot Framework
Robot Framework is a generic open source automation framework for acceptance testing, acceptance test driven development (ATDD), and robotic process automation (RPA). It has simple plain text syntax and this project provides syntax highlighting for it.
Installation
Installation packages are at PyPI. Installation itself is easiest with pip:
pip install pygments
pip install robotframeworklexer
The latter step is only needed if you want to use a newer lexer version than the one included in Pygments.
Usage
After installation Pygments will recognize robotframework lexer. It can be used, for example, with the pygmentize tool:
# Lexer for ``*.robot`` files is found automatically.
pygmentize tests.robot
# Explicit lexer configuration needed with ``*.txt`` files.
pygmentize -l robotframework tests.txt
# Override built-in robotframework lexer with separately installed version.
pygmentize -O robotframework=robotframework tests.robot
See generate.py script for an example of the programmatic usage. For general information about using Pygments, consult its documentation and/or the documentation of the tool you are using it with.
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for robotframeworklexer-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5c3aaa8012c299bbd6ff6b45c1a6b1f02eff88cefcc2a16ee0a4aa5533ce0d5 |
|
MD5 | fdee8ac4b695b5a74850ac4df926e764 |
|
BLAKE2b-256 | 2418ad01d42227d824b890f1b4d32237e5003bf7afe8764cb13545fb63d7fcb5 |