Syntax highlighting Qt text widget
Project description
syntaxedit
A simple Python Qt syntax highlighting widget
Features
- Extensive syntax and theme support - powered by Pygments
- Set font and font size
- Set indentation size
Usage
-
Install package
pip install syntaxedit
Or
poetry add syntaxedit
-
In your app, include the package, and create a
SyntaxEdit
widget:from syntaxedit.core import SyntaxEdit code = """# Todo list - [ ] Go shopping - [x] Walk the dog""" widget = SyntaxEdit(code)
Available options
content
: the initial content for the widget. Default:""
parent
: parent Qt widget for SyntaxEdit. Default:None
font
: the font family for the widget. Default:"Courier New"
font_size
: size to use for the font. Default:13
syntax
: the code syntax to use. Default:"Markdown"
theme
: the syntax theme to use. Default:"solarized-light"
indentation_size
: the size for indentation. Default:4
use_theme_background
: whether to use the background colour from the theme or to not set one. Default:True
Authors
By David Winter
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
syntaxedit-0.3.0.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file syntaxedit-0.3.0.tar.gz
.
File metadata
- Download URL: syntaxedit-0.3.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-1031-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbe45f9bffb68a512bb5519d077718f3d4da01c56a6dc44a7c9b9569629b9139 |
|
MD5 | d307a259d39e38e38deba3751bd93351 |
|
BLAKE2b-256 | 24973b69fccf7c2fed6dd0692ae0be6a3bdf229b42e8d5d028052226262468cd |
File details
Details for the file syntaxedit-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: syntaxedit-0.3.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-1031-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b49564f0917ab3f3c1977d5f159c039aeeff85bb9e433d6f30607f408163e573 |
|
MD5 | 6ca0ded632f00628d363969b176da017 |
|
BLAKE2b-256 | 97b6c1d15de62baa76e893f835cefdee9abddf2718510d0d859a09256a2ef0f9 |