Unsolved scroll boxes around code are redundant and annoying
-
@Kent-Dorfman said in scroll boxes around code are redundant and annoying:
I find that in the stuff I read the use case is more often someone dumps their whole module for inspection and then requires constantly paging back and forth inside a small scroll block to actually see their logic.
May I suggest a workaround: Copy+paste the block of code into Notepad++ (or your IDE). I always have an instance of N++ open for various uses. It also has better syntax highlighting than this forum
-
Another way to achieve this is to install a browser extension that allows you to override the styles of any webpage with your own CSS. Just tried quickly with Stylus (for Chrome https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne/). From the toolbar button click Write style for: forum.qt.io and then add the following declaration to the stylesheet:
.topic .posts .content pre { max-height: none; }
-
My problem with the code boxes for now is: I can hardly use them on my smartphone.
Sometimes I can scroll in a code box, but most often it's impossible to see more than a few characters - especially horizontal.
While code should not auto-wrap like other text, this feature makes it impossible for me to read larger snippets from my phone.
-
@aha_1980 Well that doesn't sound good. What phone/browser are you using? Can you post a screenshot what it looks like?
-
@ollipuu
from an iPhoneX
reference thread:
https://forum.qt.io/topic/100345/keyword-in -
@ollipuu I'm on the default browser for Jolla.
Example:
No scrolling possible, that's all codeI can see.
Regards
-
@J.Hilk Funny that you choosed the same topic as I :)
-
@aha_1980 said in scroll boxes around code are redundant and annoying:
No scrolling possible, that's all codeI can see.
really? that's the opposite to safari on the iPhone, I can't scroll further down until I scrolled through the whole code block!
@J.Hilk Funny that you choosed the same topic as I :)
great minds think alike cough
-
@J.Hilk said in scroll boxes around code are redundant and annoying:
really? that's the opposite to safari on the iPhone, I can't scroll further down until I scrolled through the whole code block!
Just to be clear: I can scroll through the topic, but the code box is unscrollable for me.
-