ShaderToy-Chrome-Plugin icon indicating copy to clipboard operation
ShaderToy-Chrome-Plugin copied to clipboard

[BUG] code coloring vs alignment

Open FabriceNeyret opened this issue 4 years ago • 3 comments

Code coloring in forum section is cool, but preserving alignement is crucial ;-) ( not sure whether the problem is font change, not-proportional, or space/tab size )

Comparative screen grab: image

FabriceNeyret avatar Dec 24 '20 14:12 FabriceNeyret

maybe it's just a variant of the classical problem with tab (and possibly, Shane- tabs). No problem with my tab-free quotes, apparently.

FabriceNeyret avatar Dec 24 '20 14:12 FabriceNeyret

The tab size is set to 4 -- the same size in the shadertoy editor. It is set to 8 by default in a <pre> block I think. Both use a monospace font so all the characters are the same size.

EthanLowenthal avatar Dec 28 '20 06:12 EthanLowenthal

also what do you think about a transparent background? I think it looks better but I am not sure. Screen Shot 2020-12-27 at 10 30 22 PM Screen Shot 2020-12-27 at 10 40 15 PM

EthanLowenthal avatar Dec 28 '20 06:12 EthanLowenthal