[résolu] balises code
salut a tous
je suis un embêté par le comportement des balises CODE. En fait je lui trouve deux principaux défauts :
EDIT : corrigé en ajoutant wrap=1. merci pianolivier...
Y'a pas moyen de changer ça ?
Valaaaaaaaaaaaaaaaaaaaa 😀
jy
je suis un embêté par le comportement des balises CODE. En fait je lui trouve deux principaux défauts :
- elles sont incapables de faire un retour à la ligne quand celle-ci est trop longue. Le problème c'est que tout le texte qui suit (hors balise CODE) s'étend aussi complétement vers la droite. Est-il possible de mettre un retour automatique après un certain nombre de caractères ? Les boites ^ ^ gèrent ce retour à la ligne, je suppose donc que c'est possible.Copy to clipboardla ligne est trop longue et la boite va s'agrandir jusqu'à ce qu'elle rentre en entier et c'est assez reloud parce que du coup il faut défiler la page vers la droite mais il faut vraiment qu'elle aille très très loin et malheureusement ça arrive beaucoup plus souvent qu'on ne le croit..
EDIT : corrigé en ajoutant wrap=1. merci pianolivier...
- la police utilisée n'est pas à largeur fixe donc les logs qui sont bien tabulés sur un terminal s'affichent du coup très mal. Voici comment s'affiche un log normalement tabulé (retour de top)ça craint.Copy to clipboardPID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 32556 theson 20 0 23836 4008 2736 S 14 0.1 3:43.73 gvfs-gdu-volume 2216 theson 20 0 36760 19m 14m S 11 0.6 1:48.96 gnome-system-mo 6923 root 20 0 5056 2836 2264 S 8 0.1 3:49.15 devkit-disks-da 31243 root 20 0 555m 35m 12m S 8 1.2 1:20.74 Xorg 4161 root 18 -2 2620 1040 308 S 6 0.0 2:21.28 udevd 1406 messageb 20 0 3604 1664 788 S 5 0.1 2:18.14 dbus-daemon 32490 theson 20 0 18784 8052 5956 S 5 0.3 1:25.35 gdu-notificatio 2702 theson 20 0 405m 95m 31m S 3 3.2 1:00.34 firefox 32454 theson 20 0 71236 40m 12m S 1 1.3 0:15.20 compiz.real 1 root 20 0 2668 1536 1128 S 1 0.1 0:35.70 init 1179 root 20 0 2152 768 572 S 1 0.0 0:30.51 upstart-udev-br 32209 theson 19 -1 94192 4604 3476 S 1 0.1 0:07.94 pulseaudio 32484 theson 20 0 18232 7992 6412 S 1 0.3 0:06.17 gnome-power-man 30 root -2 -20 0 0 0 S 0 0.0 0:01.14 events/0 562 root -51 -5 0 0 0 S 0 0.0 0:12.87 irq/28-ahci 566 root 15 -5 0 0 0 D 0 0.0 0:15.87 scsi_eh_1 656 theson 20 0 39720 14m 10m S 0 0.5 0:01.72 gnome-terminal 673 theson 20 0 2472 1208 884 R 0 0.0 0:00.07 top
Voici le même entre balises ~pp~~/pp~
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 32556 theson 20 0 23836 4008 2736 S 14 0.1 3:43.73 gvfs-gdu-volume 2216 theson 20 0 36760 19m 14m S 11 0.6 1:48.96 gnome-system-mo 6923 root 20 0 5056 2836 2264 S 8 0.1 3:49.15 devkit-disks-da 31243 root 20 0 555m 35m 12m S 8 1.2 1:20.74 Xorg 4161 root 18 -2 2620 1040 308 S 6 0.0 2:21.28 udevd 1406 messageb 20 0 3604 1664 788 S 5 0.1 2:18.14 dbus-daemon 32490 theson 20 0 18784 8052 5956 S 5 0.3 1:25.35 gdu-notificatio 2702 theson 20 0 405m 95m 31m S 3 3.2 1:00.34 firefox 32454 theson 20 0 71236 40m 12m S 1 1.3 0:15.20 compiz.real 1 root 20 0 2668 1536 1128 S 1 0.1 0:35.70 init 1179 root 20 0 2152 768 572 S 1 0.0 0:30.51 upstart-udev-br 32209 theson 19 -1 94192 4604 3476 S 1 0.1 0:07.94 pulseaudio 32484 theson 20 0 18232 7992 6412 S 1 0.3 0:06.17 gnome-power-man 30 root -2 -20 0 0 0 S 0 0.0 0:01.14 events/0 562 root -51 -5 0 0 0 S 0 0.0 0:12.87 irq/28-ahci 566 root 15 -5 0 0 0 D 0 0.0 0:15.87 scsi_eh_1 656 theson 20 0 39720 14m 10m S 0 0.5 0:01.72 gnome-terminal 673 theson 20 0 2472 1208 884 R 0 0.0 0:00.07 top~
Y'a pas moyen de changer ça ?
Valaaaaaaaaaaaaaaaaaaaa 😀
jy