Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

delphin.highlight

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

delphin.highlight

Pygments-based syntax highlighting for DELPH-IN formats.

  • 1.0.0
  • PyPI
  • Socket score

Maintainers
1

delphin.highlight

This module provides Pygments 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 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:

SimpleMRS on a dark background

SimpleMRS on a light background

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

TDL highlighting from PyDelphin's 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:

$ pip install delphin.highlight

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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc