Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

REQ: Code collapse feature

Featured Replies

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.

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.

  • 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.

  • 3 weeks later...

@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.

 

  • 3 weeks later...

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?

  • 10 months later...

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.