With most forums, that is not the case.
I run or have run IPB, Xenforo, Vbulletin and phpBB forums, i've never seen code tags collapsing. Or I might misunderstand you.
I presume you mean collapsing in width? Might be some mod or adjustment if you have seen that somewhere.
With the current forum software, being Xenforo, you got 2 kinds of code tags. You have the normal code and the icode tags (or rather bbcodes).
This is an example of icode used:
[icode]This is some test in icode[/icode]
which results in:
This is some test in icode
Then you have the normal code tag, known on every forum software (maybe not the newest versions ipb anymore because they don't support bbcode anymore).
[code]This is some test in code[/code]
which results in
Code:
This is some test in code
If i use a large code, with the normal code tag, it will be like this:
Code:
2021-11-14 05:18:27 1mm6yI-0002n8-6l <= [email protected] H=mail73.sea41.rsgsv.net [148.105.13.73] P=esmtps X=TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=no S=246027 DKIM=hbm-machines.com id=542b6f4eac84c4eb84aa4072a.5be836d6a6.20211114041556.88e430e2bd.1bfc17c5@mail73.sea41.rsgsv.net T="Spectaculair veel voordeel!" from <[email protected]> for [email protected]
Is that what you mean? Because I have not see this wrapped in any forum software.
However, if you use the quote tag instead of the code tag.....
2021-11-14 05:18:27 1mm6yI-0002n8-6l <=
[email protected] H=mail73.sea41.rsgsv.net [148.105.13.73] P=esmtps X=TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=no S=246027 DKIM=hbm-machines.com id=
542b6f4eac84c4eb84aa4072a.5be836d6a6.20211114041556.88e430e2bd.1bfc17c5@mail73.sea41.rsgsv.net T="Spectaculair veel voordeel!" from <
[email protected]> for
[email protected]
then it's wrapping, maybe you mistaken the code tag for the quote tag?
If this is not what you mean, maybe you can clarify?