Skip to main content

Generate color syntax highlighted PNG image from python source files.

Project description

pyliter is a Python 3 command-line tool that generates PNG files from python source.

Features

  • syntax highlighting

  • PNG files

  • preview mode

  • OpenGL rendering using pyglet

Install

$ pip install pyliter
$ pip install git+https://github.com/JnyJny/pyliter

Usage

$ pyliter --help

Usage: pyliter [OPTIONS] [INPUT_FILE] [OUTPUT_FILE]

  Python syntax highlighting

  Performs Python syntax highlighting on code found in INPUT_FILE and writes
  color annotated text in PNG format to OUTPUT_FILE.

Options:
  -l, --start-line INTEGER  line to begin displaying
  -n, --line-count INTEGER  number of lines to display
  -p, --preview
  -t, --transparent
  -s, --style-name TEXT
  --list-styles
  --version                 Show the version and exit.
  --help                    Show this message and exit.

Example

Super Awesome PNG Screenshot

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

pyliter-1.2.1.tar.gz (21.9 kB view hashes)

Uploaded Source

Built Distribution

pyliter-1.2.1-py3-none-any.whl (26.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page