this post was submitted on 23 Aug 2023
12 points (87.5% liked)

Programming

17492 readers
43 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
 

For my blog I thought I'd set up code blocks that can be adapted to mobile. Does anyone else bother doing this, or is it just me? You certainly don't get this option on blog platforms like dev.to, so I'm guessing it's not that common.

you are viewing a single comment's thread
view the rest of the comments
[–] Aux@lemmy.world 4 points 1 year ago (2 children)

I'd rather have to scroll than to look at butchered code formatting. Just let me zoom out instead.

[–] robjohnson@programming.dev 1 points 1 year ago (1 children)

You touch on a fair point that yeah, we don't want to go too far and fit code into a narrow viewport at absolutely any cost. But applied wisely, a little judicious indentation would go a long way.

I don't think zooming is a good general solution, since ultimately it makes the code harder to read.

[–] Aux@lemmy.world 1 points 1 year ago

Manual zoom allows me to adjust the text to the size which is comfortable.