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.2.tar.gz (7.7 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.2-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: better_highlighting-0.1.2.tar.gz
  • Upload date:
  • Size: 7.7 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.2.tar.gz
Algorithm Hash digest
SHA256 bc870891edc6e4929186123a5b19d9a46ff121dc47ff8a0ce9a3bf76de3ac48a
MD5 81e73ddfb6bc6181bd3f0327ae8cfe49
BLAKE2b-256 1409695175d6d142367bdb696bd858493edcd9828c0263c708a9a700ef30349d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for better_highlighting-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ff3f2d64155334cb835017f499d57b92c6edd070f5b3974d540c93f7362390e2
MD5 b34e428d510df62f6d78bf1accdf23e9
BLAKE2b-256 c71ec62fa8dc53f21bb0eb972b803a4681bbcceb6b52a2cb4c819226d5ca0691

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