2023-10-10 00:25:07 +02:00
|
|
|
### GnuSnapCode ###
|
|
|
|
|
|
|
|
Generador de imágenes mediante Python para un trozo de código
|
|
|
|
|
|
|
|
**Ejemplo de imagen resultante**
|
|
|
|
|
2023-10-10 11:54:04 +02:00
|
|
|
![Captura](imagenes/nuevo-codigo.png "Style: material")
|
2023-10-10 00:25:07 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**Lenguajes a interpretar por el analizador de código**
|
|
|
|
|
|
|
|
Definirlo en :
|
2023-10-10 00:39:50 +02:00
|
|
|
|
2023-10-10 11:54:04 +02:00
|
|
|
get_lexer_by_name("LENGUAJE", ...)
|
2023-10-10 00:25:07 +02:00
|
|
|
|
|
|
|
**Estilos/Formatos de salida de la imagen generada**
|
|
|
|
|
|
|
|
* default, xcode
|
|
|
|
* bw, sas, staroffice
|
|
|
|
* monokai, github-dark, lightbulb, rrt
|
|
|
|
* autumn, borland, colorful, igor, lovelace
|
|
|
|
* vs, emacs, tango
|
|
|
|
* solarized-light, manni, friendly, perldoc
|
|
|
|
* nord, material, one-dark, dracula, native, vim
|
|
|
|
|
2023-10-10 00:39:50 +02:00
|
|
|
|
|
|
|
**Otros ejemplos de salida**
|
|
|
|
|
2023-10-10 11:59:12 +02:00
|
|
|
![Captura](imagenes/codigo-native.png "Style: native")
|
|
|
|
|
2023-10-10 00:39:50 +02:00
|
|
|
![Captura](imagenes/codigo1.png "Style: manni")
|
|
|
|
|
|
|
|
![Captura](imagenes/codigo2.png "Style: nord")
|
|
|
|
|
|
|
|
|
2023-10-10 00:25:07 +02:00
|
|
|
|
2023-10-10 00:47:41 +02:00
|
|
|
Lista completa de Lenguajes soportados:
|
|
|
|
https://pygments.org/languages/
|
|
|
|
|
|
|
|
Lista completa de estilos soportados:
|
|
|
|
https://pygments.org/styles/
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-10-10 00:25:07 +02:00
|
|
|
|