better-highlighting-2.0.0
توضیحات
Small tool for text and syntax highlight.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | better-highlighting-2.0.0 |
| نام | better-highlighting |
| نسخه کتابخانه | 2.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | vskarinov |
| ایمیل نویسنده | skarinov27@gmail.com |
| آدرس صفحه اصلی | https://github.com/vskarinov/better_highlighting |
| آدرس اینترنتی | https://pypi.org/project/better-highlighting/ |
| مجوز | MIT |
[](https://www.python.org/downloads/release/python-390/)
# 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:
<img src="https://user-images.githubusercontent.com/21011049/160372378-32acc15e-1cfa-4987-bce7-6dfd34ec3ab2.png"></img>
### Text styles
<table>
<th>Styles</th>
<tr><td>ansiblack</td></tr>
<tr><td>bold</td></tr>
<tr><td>italic</td></tr>
<tr><td>underline</td></tr>
</table>
### 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”
<table>
<th>Color names</th>
<tr><td>ansiblack</td></tr>
<tr><td>ansired</td></tr>
<tr><td>ansigreen</td></tr>
<tr><td>ansiyellow</td></tr>
<tr><td>ansiblue</td></tr>
<tr><td>ansimagenta</td></tr>
<tr><td>ansibrightblack</td></tr>
<tr><td>ansibrightred</td></tr>
<tr><td>ansibrightgreen</td></tr>
<tr><td>ansibrightyellow</td></tr>
<tr><td>ansibrightblue</td></tr>
<tr><td>ansibrightmagenta</td></tr>
<tr><td>ansibrightcyan</td></tr>
<tr><td>ansiwhite</td></tr>
</table>
نیازمندی
| مقدار | نام |
|---|---|
| >=2.11.2,<3.0.0 | Pygments |
| >=0.8.9,<0.9.0 | tabulate |
| >=1.4.1,<2.0.0 | pandas |
| >=7.2.0,<8.0.0 | pytest |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9,<4.0 | Python |
نحوه نصب
نصب پکیج whl better-highlighting-2.0.0:
pip install better-highlighting-2.0.0.whl
نصب پکیج tar.gz better-highlighting-2.0.0:
pip install better-highlighting-2.0.0.tar.gz