Skip to main content

Small tool for text and syntax highlight.

Project description

Python 3.9

Better highlighting

Usage:

This tool is designed for beautiful text formatting in the terminal. It is highly specialized, prints in terminal highlighted text in more readable form. It also can render 'pretty' table and python's iterators syntax.

Example:

Text styles

Styles
ansiblack
bold
italic
underline

Colors

Colors specified using ansi* are converted to a default set of RGB colors when used with formatters other than the terminal-256 formatter.

By definition of ANSI, the following colors are considered “light” colors, and will be rendered by most terminals as bold:

  • “brightblack” (darkgrey), “brightred”, “brightgreen”, “brightyellow”, “brightblue”, “brightmagenta”, “brightcyan”, “white”

The following are considered “dark” colors and will be rendered as non-bold:

  • “black”, “red”, “green”, “yellow”, “blue”, “magenta”, “cyan”, “gray”
Color names
ansiblack
ansired
ansigreen
ansiyellow
ansiblue
ansimagenta
ansibrightblack
ansibrightred
ansibrightgreen
ansibrightyellow
ansibrightblue
ansibrightmagenta
ansibrightcyan
ansiwhite

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

better_highlighting-0.1.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

better_highlighting-0.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file better_highlighting-0.1.0.tar.gz.

File metadata

  • Download URL: better_highlighting-0.1.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.2 Darwin/21.4.0

File hashes

Hashes for better_highlighting-0.1.0.tar.gz
Algorithm Hash digest
SHA256 62af270f83135d643b6ed295c5919c5151770bf255fad7760c3255bbbc619da6
MD5 7a19e0da695222fb0a14caee80d5f96e
BLAKE2b-256 29e89ca81267d37c7390da30af88469dd41014b246f82fd21e4cb4014effaf69

See more details on using hashes here.

File details

Details for the file better_highlighting-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for better_highlighting-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb451596be4c6f55028fe46371ee9939ad7083f947b50b3e3bffdee53b54eefe
MD5 69af803d79be42127d6431a343d83317
BLAKE2b-256 68ddfc72b3f48ffc34720e11fc19a6c96a15faa04599e27b78621ace326f36d5

See more details on using hashes here.

Supported by

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