{{tag>Brouillon}}
= Notes web
== Coloration syntaxique
La coloration syntaxique de la note précédente a été faite avec pygmentize. Par exemple:
pygmentize -f html -l cpp -o code.html code
Pour récupérer le style CSS:
pygmentize -f html -S colorful
== web worker / worker API / consumers
Three parties :
* The **web worker** is responsible for running scripts in its own separate thread.
* The **worker API** exposes a consumer-to-provider communication interface.
* The **consumers** want to run some scripts outside the main thread, so they don’t block the main thread.
Source : https://pyodide.org/en/stable/usage/webworker.html