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-2.0.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

better_highlighting-2.0.0-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: better_highlighting-2.0.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.9.15 Darwin/22.2.0

File hashes

Hashes for better_highlighting-2.0.0.tar.gz
Algorithm Hash digest
SHA256 8baff108d5a8d44faafa01e94c4e5a0cff63b1818c90118b91432e92db75a413
MD5 1de9927a7a3f2fa8d25fa07ad625653d
BLAKE2b-256 29d6c9fac589bf76fe2db171307c3af674cefd2d26e4e68db6be0a127c40c88e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for better_highlighting-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c73ab134cf75fcd0b82897dd4452a9cdc6c2b5c7feea92f3c353a7e1178ec537
MD5 1d2d9c75b8703b2a6364834118fabdbe
BLAKE2b-256 83833acf38e2bee0f53c7cc418e3167eeea19c5d17fff63d11c3913113f17e79

See more details on using hashes here.

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