Small tool for text and syntax highlight.
Project description
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8baff108d5a8d44faafa01e94c4e5a0cff63b1818c90118b91432e92db75a413 |
|
MD5 | 1de9927a7a3f2fa8d25fa07ad625653d |
|
BLAKE2b-256 | 29d6c9fac589bf76fe2db171307c3af674cefd2d26e4e68db6be0a127c40c88e |
File details
Details for the file better_highlighting-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: better_highlighting-2.0.0-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.9.15 Darwin/22.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c73ab134cf75fcd0b82897dd4452a9cdc6c2b5c7feea92f3c353a7e1178ec537 |
|
MD5 | 1d2d9c75b8703b2a6364834118fabdbe |
|
BLAKE2b-256 | 83833acf38e2bee0f53c7cc418e3167eeea19c5d17fff63d11c3913113f17e79 |