Currently when people paste logs etc which can be quite long it is much easier to view them in a local editor rather than in the limited view box on the forum. Currently as far as I know there isn’t an easy way to copy the whole code block easily without inadvertently selecting everything on the page for example.
Discourse has a built in as of 2023 that enables a copy button on codeblocks but wasn’t enabled by default originally (but is now). Any chance of enabling it on the manjaro forum? It would make forum life so much easier.
It is enabled, but the bug gremlins ate it after some update several months ago (and nobody can figure out how to fix it, at least from the 2-3 people that tried me included). Now it is only working in the manjaro theme. I wasn’t aware of that until now, i guess we can revisit this and try to compare the code.
For all other themes it is working in the mobile mode, that is, resizing the browser under 40em makes it appear. Quite a stupid workaround but sometimes useful.
Ahh yes, I presumed it was theme agnostic since its a global setting. I can confirm it works on the Manjaro theme. I did change from the Manjaro theme to fix some other UI issue but I can’t recall what it was now so I guess I’ll stumble across it again soon enough. Thanks.
I wonder if the themes need updating??? If they’re older than the global option perhaps they don’t include the code to display it???
The Manjaro theme is maintained at Manjaro Gitlab and a while back I made some subtle changes to make the copy-to-clipboard and the code-full-screen-view buttons visible at higher resolutions.
This means that changes to other themes must be directed at the relevant repositories as show above.
Thanks, but i am currently in the chromium camp. There is actually a very convoluted function to do it built in, but somehow it only worked on cache…
And i am not comfortable giving read access to all sites to some extension.