Thonny HTML Highlighter
Plugin pour Thonny ajoutant la coloration syntaxique et l'autocomplétion pour les fichiers HTML et css, avec prise en charge du CSS et du JavaScript intégrés. Ajout d'un bouton pour lancer le code html dans le navigateur.
Fonctionnalités
Le plugin permet de mieux distinguer les différents éléments d'une page HTML :
- balises HTML
- noms des balises
- attributs HTML
- valeurs des attributs
- commentaires HTML
- sélecteurs CSS
- propriétés CSS
- valeurs CSS
- commentaires CSS
- mots-clés JavaScript
- chaînes de caractères JavaScript
- commentaires JavaScript
- objets JavaScript
- méthodes JavaScript
- nombres JavaScript
La coloration fonctionne également pour le CSS contenu dans les balises <style> et le JavaScript contenu dans les balises <script>.
Exemple
Un code comme :
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: lightblue;
}
</style>
</head>
<body>
<h1 class="titre">Bonjour</h1>
<script>
let message = "Bonjour !";
console.log(message);
</script>
</body>
</html>
est automatiquement coloré dans l'éditeur de Thonny.
Installation
Depuis Thonny
Le plugin peut être installé directement depuis :
Outils → Gérer les plugins
Rechercher :
thonny-html-highlighter
Puis installer le plugin et redémarrer Thonny si nécessaire.
Avec pip
Il est également possible de l'installer avec :
pip install thonny-html-highlighter
Le plugin nécessite Thonny 5.0.0 ou une version ultérieure.
Compatibilité
- Thonny :
>= 5.0.0 - Python :
>= 3.10 - Windows, Linux et macOS
Fonctionnement
Le plugin utilise le système d'extensions de Thonny et s'intègre directement à l'éditeur de code.
Il détecte automatiquement les éléments HTML ainsi que les blocs CSS et JavaScript présents dans une page HTML.
Le plugin ne modifie pas le fichier source : il agit uniquement sur l'affichage du code dans l'éditeur.
Auteur
Pierre Lemaitre
Metadata
Release files for thonny-html-highlighter 1.3.0
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_highlighter-1.3.0.tar.gz | 22.1 kB | Without provenance | Details for thonny_html_highlighter-1.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| thonny_html_highlighter-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for thonny_html_highlighter-1.3.0-py3-none-any.whl |
Total release size: 45.6 kB
Release files / thonny_html_highlighter-1.3.0.tar.gz
| Download URL | thonny_html_highlighter-1.3.0.tar.gz |
|---|---|
| Size | 22.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
084de07a0992398cc0c07e64deb67e41b68d2f0ea79e4d86eba249e14ec28833
|
|
BLAKE2b-256 checksum How to use checksums |
f2c65cffdc7fe00d25136aafe4b0c4118cb0fddd5eb3e53b22593a65aeea50a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.1
|
Release files / thonny_html_highlighter-1.3.0-py3-none-any.whl
| Download URL | thonny_html_highlighter-1.3.0-py3-none-any.whl |
|---|---|
| Size | 23.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
856b88a7488599bd08fc3e659881a023c20be5c6aeade973706b53ea3a544537
|
|
BLAKE2b-256 checksum How to use checksums |
fa1ee2f16831cbe6e1fde31b2aed4d3ca444ef6a40ea81860273d25b31bfc3cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.1
|
Security for thonny-html-highlighter 1.3.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.