12
How to Create Responsive Code Blocks
(robjohnson.dev)
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
Follow the wormhole through a path of communities !webdev@programming.dev
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.
Manual zoom allows me to adjust the text to the size which is comfortable.