scroll boxes around code are redundant and annoying
-
How might we disable the silly scroll boxes that "long" attached code occupies in threads? It's redundant, given that the main web browser already has a scroll bar. Also, the way most folks write code, not enough of the example code shows up in the scroll area to be useful, at least the way my mind works.
-
To be honest, I find it quite useful, the way it is.
The forum lacks a "spoiler" feature and the limited space inside the code view helps (me) to read the posts better.
More often than not, example code is in-between text blocks and most of the time the text is coherent.
Would be a different matter if the code is by default hidden and could be expanded when needed/wanted
-
Eh.
@J.Hilk said in scroll boxes around code are redundant and annoying:To be honest, I find it quite useful, the way it is.
The forum lacks a "spoiler" feature and the limited space inside the code view helps (me) to read the posts better.
More often than not, example code is in-between text blocks and most of the time the text is coherent.
Eh...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. Again, redundant since I have control over the browser scroll window size and can expand it to see enough of their code to make some sense out of it. The active thread about TCP streaming of video frames is a prime example. I cannot even see a complete function the OPs code posting under the current scheme.
I don't expect it to change but I think for use old pre-gui dinosaurs it seems a silly design: scroll block within scroll block.
-
@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.
-
@ollipuu
from an iPhoneX
reference thread:
https://forum.qt.io/topic/100345/keyword-in -
@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.
-