delphin.highlight-1.0.0
توضیحات
Pygments-based syntax highlighting for DELPH-IN formats.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | delphin.highlight-1.0.0 |
| نام | delphin.highlight |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Michael Wayne Goodman |
| ایمیل نویسنده | goodman.m.w@gmail.com |
| آدرس صفحه اصلی | https://github.com/delph-in/delphin.highlight |
| آدرس اینترنتی | https://pypi.org/project/delphin.highlight/ |
| مجوز | MIT |
# delphin.highlight
This module provides [Pygments][] [lexers](http://pygments.org/lexers)
for the following [DELPH-IN][] formats:
* [TDL][] -- Type Description Language
* [SimpleMRS][] -- A popular serialization format for Minimal
Recursion Semantics
In addition, a Pygments [style](http://pygments.org/docs/styles/) for
MRS is available which helps highlight the interesting information in
SimpleMRS.
# Examples
The SimpleMRS style is meant for console output, and works with both
dark and light backgrounds:


The TDL lexer is used for [PyDelphin][]'s [Sphinx][]-based documentation:

# Installation and Requirements
This module is a [namespace package][] of [PyDelphin][], but it does
not depend on any PyDelphin packages, rather it only depends on
Pygments version 2.3.1 or higher. This means it can be used
independently of PyDelphin.
This module can be installed via `pip`:
``` console
$ pip install delphin.highlight
```
[namespace package]: https://docs.python.org/3/reference/import.html#namespace-packages
# Usage
While you can drop in the lexers into Pygments-capable applications
like wikis or documentation sites, the console highlighting of
SimpleMRS is provided by the [PyDelphin][] package via the `delphin
convert` command.
[DELPH-IN]: http://www.delph-in.net
[Pygments]: http://pygments.org
[PyDelphin]: https://github.com/delph-in/pydelphin
[SimpleMRS]: http://moin.delph-in.net/MrsRfc
[Sphinx]: http://www.sphinx-doc.org/
[TDL]: http://moin.delph-in.net/TdlRfc
نیازمندی
| مقدار | نام |
|---|---|
| >=2.3.1 | Pygments |
نحوه نصب
نصب پکیج whl delphin.highlight-1.0.0:
pip install delphin.highlight-1.0.0.whl
نصب پکیج tar.gz delphin.highlight-1.0.0:
pip install delphin.highlight-1.0.0.tar.gz