Kunda1 wrote: ↑Mon Oct 29, 2018 6:06 pm
chrisb wrote: ↑Mon Oct 29, 2018 4:22 pm
To me black signals immediately that it's on console, so it's great here. For other code I would like to have some grey background.
Yea, I thought about that. I wonder how we can distinguish console code from other code ?
Maybe what @vocx proposes?
vocx wrote: ↑Sat Oct 27, 2018 4:41 am
The wiki has a {{Code|code=something here}} template to display blocks of code
Don't use black blocks. It's too much ink on screen. Current {{Code|code=}} template works fine, with that slight gray background. Besides, as mentioned, when you print it, it shouldn't print the entire black block, should it?
I already implemented the {{incode|something}} template, which is just a pair of <code>something</code> tags,
https://www.freecadweb.org/wiki/Template:Incode
Now, what would be more useful is color highlighting, as explained in
https://www.freecadweb.org/wiki/Template:Code
Using color highlight in the website is fine, but again, when you print it, it probably should default to black.
It seems color highlighting was disabled before, but why? Maybe when FreeCAD was using other type of wiki? There is a lot of old, confusing information on the wiki, this needs deep review.