thonny-html-highlight
Syntax highlighting for HTML files in the Thonny IDE.
By default Thonny treats .html and .htm files as plain text. This plugin adds colour highlighting for:
- Tag names (
div,span,a, …) - Attribute names (
class,href,data-value, …) - Attribute values (
"foo",'bar', …) - HTML comments (
<!-- … -->) - DOCTYPE declarations (
<!DOCTYPE html>) - Entity references (
&,©,©, …) - Angle-bracket punctuation
Requirements
- Thonny 5.0 or later
- Python 3.13 or later (bundled with Thonny 5)
Installation
Via Thonny's built-in package manager (recommended)
- Open Thonny.
- Go to Tools → Manage packages…
- Search for
thonny-html-highlight. - Click Install.
- Restart Thonny.
Via pip / uv (command line)
# Using pip
pip install thonny-html-highlight
# Using uv
uv pip install thonny-html-highlight
Then restart Thonny.
From source (development)
git clone https://github.com/mrmatho/thonny-html-highlight.git
cd thonny-html-highlight
uv pip install -e .
Restart Thonny after installing.
Usage
Open any .html or .htm file in Thonny — highlighting is applied automatically. No configuration is required.
Known limitations
- Content inside
<script>and<style>tags is treated as HTML, which may produce incorrect highlighting for JavaScript or CSS within those blocks. - Colours follow Thonny's default light theme. Integration with custom syntax themes is planned for a future release.
Development
# Run tests
uv run pytest
# Run tests with verbose output
uv run pytest -v
Licence
MIT
Metadata
Release files for thonny-html-highlight 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| thonny_html_highlight-0.1.3.tar.gz | 8.2 kB | With provenance | Details for thonny_html_highlight-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| thonny_html_highlight-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for thonny_html_highlight-0.1.3-py3-none-any.whl |
Total release size: 18.3 kB
Release files / thonny_html_highlight-0.1.3.tar.gz
| Download URL | thonny_html_highlight-0.1.3.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
025455e3943b93424f2feef12137f64be6861b5e029468ee9e919aef3c261fdb
|
|
BLAKE2b-256 checksum How to use checksums |
2d8636de0af5939e295fa832a199a104e90a2f68d5c72b2950c5d34929a3ef59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 5, 2026.
Transparency logRelease files / thonny_html_highlight-0.1.3-py3-none-any.whl
| Download URL | thonny_html_highlight-0.1.3-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9f53dd499ea993c052172c021c302a52cd7aa92fb383ab8717299390c247a7c9
|
|
BLAKE2b-256 checksum How to use checksums |
26b9ed339a844d3c777b9077929e74888179af793c16c86913b9d8f2e6c3c45e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 5, 2026.
Transparency logSecurity for thonny-html-highlight 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for thonny_html_highlight-0.1.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.