Metadata-Version: 2.3
Name: qtcodeedit
Version: 0.1.0
Summary: A code editing widget for PyQt and PySide
Project-URL: Homepage, https://github.com/kaofelix/qtcodeedit
Project-URL: Issues, https://github.com/kaofelix/qtcodeedit
Author-email: Kao Cardoso Félix <kcfelix@gmail.com>
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Requires-Dist: pygments>=2.18.0
Requires-Dist: pyside6>=6.2.0
Requires-Dist: qtpy>=2.4.1
Description-Content-Type: text/markdown

# CodeEdit for Qt and Python

This is a simple code editor widget for Python and Qt supporting multiple languages and color
themes.

## Features

- Syntax and theming support powered by [Pygments](https://pygments.org), so any language and theme
  supported by it can be used
- Hide and show line numbers
- Spaces or tabs for indentation

## Implementation

The CodeEdit widget is based on `QPlainTextEdit` and syntax highlight is provided by a Pygments
based implementation of `QSyntaxHighlighter`. The line number implementation was based on [this
sample](https://doc.qt.io/qt-5/qtwidgets-widgets-codeeditor-example.html) from the Qt docs, with a
bit of cleanup and refactoring on my part.
