Skip to main content

syntaxedit

test PyPI

A simple Python Qt syntax highlighting widget

syntaxedit

Features

  • Extensive syntax and theme support - powered by Pygments
  • Set font and font size
  • Set indentation size

Usage

  1. Install package

    pip install syntaxedit
    

    Or

    poetry add syntaxedit
    
  2. 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

Metadata

Release files for syntaxedit 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for syntaxedit 0.3.0
File Size Uploaded
syntaxedit-0.3.0.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for syntaxedit 0.3.0
File Interpreter ABI Platform
syntaxedit-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.2 kB

Release files / syntaxedit-0.3.0.tar.gz

Download URL syntaxedit-0.3.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
cbe45f9bffb68a512bb5519d077718f3d4da01c56a6dc44a7c9b9569629b9139
BLAKE2b-256 checksum
How to use checksums
24973b69fccf7c2fed6dd0692ae0be6a3bdf229b42e8d5d028052226262468cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-1031-azure

Release files / syntaxedit-0.3.0-py3-none-any.whl

Download URL syntaxedit-0.3.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b49564f0917ab3f3c1977d5f159c039aeeff85bb9e433d6f30607f408163e573
BLAKE2b-256 checksum
How to use checksums
97b6c1d15de62baa76e893f835cefdee9abddf2718510d0d859a09256a2ef0f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.6 Linux/5.15.0-1031-azure

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page