March 29, 20206 yr It would be nice to have sections marked as 'code' to be collapsed. As it is quite common to paste scripts and logs in posts, these can be quite annoying to scroll past.
March 29, 20206 yr You can do that already, but it's not a button, you have to put the tag in yourself manually. Sample syslog piece grabbed from a random post Mar 29 18:13:56 Tower kernel: pcieport 0000:00:03.2: broadcast error_detected message Mar 29 18:13:56 Tower kernel: pcieport 0000:00:03.2: broadcast mmio_enabled message Mar 29 18:13:56 Tower kernel: pcieport 0000:00:03.2: broadcast resume message Mar 29 18:13:56 Tower kernel: pcieport 0000:00:03.2: AER: Device recovery successful Mar 29 18:13:57 Tower kernel: iommu ivhd0: AMD-Vi: Event logged [ Mar 29 18:13:57 Tower kernel: iommu ivhd0: IOTLB_INV_TIMEOUT device=0e:00.0 address=0x000000081e44b450] Mar 29 18:13:57 Tower kernel: pcieport 0000:00:03.2: AER: Uncorrected (Non-Fatal) error received: 0000:00:00.0 Mar 29 18:13:57 Tower kernel: pcieport 0000:00:03.2: PCIe Bus Error: severity=Uncorrected (Non-Fatal), type=Transaction Layer, (Receiver ID) Mar 29 18:13:57 Tower kernel: pcieport 0000:00:03.2: device [1022:1453] error status/mask=00200000/04400000 Like that.
March 30, 20206 yr Author Then maybe there should be a "spoiler" button, as I guess people are not aware of that tag. Or hotwire the "code" tag to do the same thing.
April 14, 20206 yr @SpencerJ, any chance of possibly modifying the code tag to embed the spoiler tag simultaneously? That way when we tell people to post using the code button they are monospaced and collapsed, making the forum much cleaner to read through.
April 30, 20206 yr To build on this, allow setting a title for the code tag spoilers; for example: [ code = "/etc/ssh/sshd_config" ]...[ /code ] could change the header of the spoiler to the name of the file or command of which the code block contents come from?
Archived
This topic is now archived and is closed to further replies.