Page 1 of 2
forum Quote text and Code display
Posted: Thu Jun 14, 2018 3:26 pm
by tradonal
Hello all,
It's just to know which method to use for the output of a command on the forum
like this:
En train de trier... Fait
Recherche en texte intégral... Fait
linux-headers-3.16.0-6-586/oldstable 3.16.56-1+deb8u1 i386
Header files for Linux 3.16.0-6-586
linux-image-3.16.0-6-586/oldstable,now 3.16.56-1+deb8u1 i386 [installé]
Linux 3.16 for older PCs
or like that
Code: Select all
$ apt search linux-* 3.16.0-6-586
En train de trier... Fait
Recherche en texte intégral... Fait
linux-headers-3.16.0-6-586/oldstable 3.16.56-1+deb8u1 i386
Header files for Linux 3.16.0-6-586
linux-image-3.16.0-6-586/oldstable,now 3.16.56-1+deb8u1 i386 [installé]
Linux 3.16 for older PCs
THX
Re: forum Quote text and Code display
Posted: Thu Jun 14, 2018 3:26 pm
by Eadwine Rose
The code one :) Sometimes outputs can run quite lengthy, code leaves formatting of the command as is, and makes a nice scroll bar on longer entries.
Re: forum Quote text and Code display
Posted: Thu Jun 14, 2018 3:57 pm
by fehlix
Please do use code-tags ( the icon above the editor window </>) and paste between
the code-tags [code] paste output here[/code].
For short quotes is probably ok to use quote-tags ( quote-icon above editor window " and paste between [quote] paste quotes here [/quote].
Hint: When you mark text and press the tag-icon above the editor the text goes into the tags.
Re: forum Quote text and Code display
Posted: Sat Jun 16, 2018 11:43 am
by tradonal
Thank you for your return, if I understand correctly there is no well defined rule for that ...
if not, is it possible to color, if so how?
For example,
For have this
Code: Select all
# ls
#.bash_history# directory.txt geany-themes LGPL packaging RESULTS1.txt Téléchargements
Bureau Documents Images Modèles Public RESULTS2.txt usr
Desktop dwhelper infogrub.txt Musique recherches emplois RESULTS.txt Vidéos
thank you
Re: forum Quote text and Code display
Posted: Sat Jun 16, 2018 11:53 am
by fehlix
tradonal wrote: ↑Sat Jun 16, 2018 11:43 am
Thank you for your return, if I understand correctly there is no well defined rule for that ...
if not, is it possible to color, if so how?
Well, it is a polite moderator request, and in this sense it is well spelled out.
In addition, do please consult the
FAQ above,
esp.
Can I use HTML?
Re: forum Quote text and Code display
Posted: Sun Jun 17, 2018 4:09 pm
by tradonal
fehlix wrote: ↑Sat Jun 16, 2018 11:53 am
tradonal wrote: ↑Sat Jun 16, 2018 11:43 am
Thank you for your return, if I understand correctly there is no well defined rule for that ...
if not, is it possible to color, if so how?
Well, it is a polite moderator request, and in this sense it is well spelled out.
In addition, do please consult the
FAQ above,
esp.
Can I use HTML?
yes, I knew for the html
But it is possible to color bbcode, but this is not easy to do ...
for example, is it possible to redirect the output of a command to bbcode .... for html I use ccze ... ??
with this
https://www.stuffbydavid.com/textcolorizer it's not top ....
root@mx1:~
# ls
#.bash_history# Documents infogrub.txt Modèles recherches emplois systemctlperso
Bureau dwhelper iwlistperso Musique RESULTS1.txt Téléchargements
Desktop geany-themes LGPL packaging RESULTS2.txt usr
directory.txt Images lshw.html Public RESULTS.txt Vidéos
thank you
Re: forum Quote text and Code display
Posted: Sun Jun 17, 2018 4:31 pm
by fehlix
You mean like this bbcolor code:
Hello world!
Seems to work.
Thank you for this info.
Quoted:
Hello world!
Re: forum Quote text and Code display
Posted: Mon Jun 18, 2018 3:17 am
by cyrilus31
C'est psychédélique.
I think it's bearable (and even funny) once in a while but too often and you get a big headache
Re: forum Quote text and Code display
Posted: Thu Jun 21, 2018 12:59 pm
by tradonal
fehlix wrote: ↑Sun Jun 17, 2018 4:31 pm
You mean like this bbcolor code:
Hello world!
Seems to work.
Thank you for this info.
Quoted:
Hello world!
cyrilus31 wrote: ↑Mon Jun 18, 2018 3:17 am
C'est psychédélique.
I think it's bearable (and even funny) once in a while but too often and you get a big headache
yes and this is not the goal, but just a parenthesis ....
-) for color, I was thinking of something like this, which does not work on MX forum ...
source of the example:
https://www.debian-fr.org/c/support
-) With code
</code></pre>
<pre><code class="lang-auto">$ cat /isos/00_isoboot.cfg
</code></pre>
<pre><code class="lang-auto">menuentry "bl-Deuterium-i386 install" {
set root='hd0,msdos1'
set isofile="/isos/bl-Deuterium-i386+NonPAE_20170429.iso"
loopback loop (hd0,msdos1)$isofile
linux (loop)/install/gtk/vmlinuz findiso=${isofile} video=vesa:ywrap,mtrr vga=788 -- quiet
initrd (loop)/install/gtk/initrd.gz
}</code></pre>
-) we get a color output like this
Re: forum Quote text and Code display
Posted: Thu Jun 21, 2018 3:58 pm
by Eadwine Rose
I'd kindly request leaving the colors out of posts, it's easier to read when posts are in plain jane text. Thanks :)