Split - Spoiler
-
@Steffie said:
PS: Hmmm, i just can't seem to get the hang of how to use codeboxes inside spoilers, in this forum. It's easy for me in the Manjaro forum.
> Spoiler > > ``` > > code > > ```
Spoiler
code
Split from: Systemd, kernel, or Vivaldi
-
@potmeklecbohdan Thanks, yes, but no.
Pls repeat your proposed method with MULTIPLE lines of code, not a single line, & see if it works or not. IF you find that you need to manually insert a>
or a>>
in front of every line before it works, then [with respect] it's no solution at all, practically-speaking.The way i tried it, which is how it happens on the Manjaro Forum [not saying that way is best or worst, only that it works reliably+quickly & i am familiar with it], was to paste my lines of code into the V drafting pane "raw", then wrap it in the prepended & appended ```, then select ALL of that & click the
Spoiler
icon. The dysfunctional result you see above in my OP, whose draft form is: -
@Steffie Yes, you have to insert
> >
before each line of the code block -
@potmeklecbohdan Exactly! It's a bad arrangement. I sincerely hope this aspect is fixed, because it makes including non-trivial codeblocks, within a spoiler, so laborious as to force posters to not do it [certainly i shan't]. Practically-speaking then, those needing to include a slab of code in the V forum posts, need to do it as an "unhidden / non-spoilered" codeblock [takes lots of screen space & ergo is inconvenient & ugly for forum readers], OR, hide the code within a spoiler but not as a codeblock [thus making it hard to read coz it then loses format structure]. Sorry to harp on about it but other fora manage this much better.
-
@Steffie Very easy with Sublime (
Ctrl
+A
,Ctrl
+Shift
+L
,Home
, insert> >
(at least on Win)) -
@potmeklecbohdan was not the thread starter. However ....
-
I think this belong to forum feedback, not modifications - or could be implemented as such ^^
Yeah, setting up nested codeblocks in spoiler tags could be rather annoying if the code is long. A bit of automation on this would be nice -
@Hadden89 Presto
-
We have been asking for a spoiler solution for a long time. Doing the spoiler with quotes is just a clumsy workaround, it's not meant to work flawlessly.
-
@luetage politely I will ask: are you "talking to me?"
-
NodeBB seems to have a plugin for that. But I'm unsure if it will work with the forum.
:::
(spoiler start)
< Any forum content: code, text, images, ecc >
:::
(spoiler end)