patuwwy / ShaderToy-Chrome-Plugin

Web extension for shadertoy.com
https://github.com/patuwwy/ShaderToy-Chrome-Plugin
Other
242 stars 29 forks source link

[BUG] code coloring vs alignment #137

Open FabriceNeyret opened 3 years ago

FabriceNeyret commented 3 years ago

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 commented 3 years ago

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

EthanLowenthal commented 3 years ago

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 commented 3 years ago

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