Add code syntax highlight utils (#88)

* add code syntax highlight code

* add example

* add documentation and fix example

* add tests

* add information about napari theme usage

* clean napari mention
This commit is contained in:
Grzegorz Bokota
2022-05-18 22:50:51 +02:00
committed by GitHub
parent c7f8780900
commit 0ae3350c57
6 changed files with 157 additions and 1 deletions

10
docs/utils.md Normal file
View File

@@ -0,0 +1,10 @@
# Utils
## Code highlighting
`superqt` provides a code highlighter subclass of `QSyntaxHighlighter`
that can be used to highlight code in a QTextEdit.
Code lexer and available styles are from [`pygments`](https://pygments.org/) python library
List of available languages are available [here](https://pygments.org/languages/).
List of available styles are available [here](https://pygments.org/styles/).