[HowTo] Post command output and file content as formatted text

Difficulty: ★☆☆☆☆

Formatting differences

  • Discourse – this forum’s engine – uses Markdown to format its posts, and removes “unnecessary” whitespace.
  • Terminal commands often produce output formatted so that they are better readable by the user, taking advantage of the monospaced font used.
  • Programming code often rely on indentation to make it more readable.

Using preformatting in Markdown

Markdown includes a pattern to provide preformatting when necessary.
You only need to put the part to format between two lines of three backticks, like so:

```
This text will be preformatted.
```

:warning: Do note confuse the backtick ` character with the single quote or double quote ".

:star: If you don’t find the backtick key on your keyboard, you can achieve the same result by clicking the Preformatted text </> button in the posting form, or with Ctrl+E.

:star: The posting form has a preview feature, allowing you to check whether you correctly set preformatting before posting.

:star: You can edit your own posts. Make use of this to correct the formatting when asked to.

Without preformatting:

$ inxi -m
Memory:
RAM: total: 15.64 GiB used: 6.51 GiB (41.6%)
RAM Report:
permissions: Unable to run dmidecode. Root privileges required.

With preformatting:

$ inxi -m
Memory:
  RAM: total: 15.64 GiB used: 6.51 GiB (41.6%)
  RAM Report:
    permissions: Unable to run dmidecode. Root privileges required.
8 Likes
[HowTo] Find error logs
Network problem
How to insert a command from a terminal on the forum?
VIM3 Manjaro 22 - Just Stops
System frequent freezes
Dev/sda2: clean **/** files **/** Blocks”
I insert usb and Manjaro crashes
Screen resolution not proposed
Mediatek MT7921e wifi driver issue
Audio crackles when changing volume (Pulseaudio)
Computer randomly restarts, regardless of OS
Display Corruption with RX 580
Low speed of network using Wifi connection
How to Install xDebug?
Visual glitch issue while using apps!
Dernière mise à jour manjaro nvidia écran noir
Wifi problem on fresh installation
Steam + Left 4 Dead 2 - KDE Session Closes
Manjaro freezes while boot
Screen flickering ASUS TUF Gaming F15
Speaker & Headphones not detected by Manjaro
High memory usage
First login fail with Gnome Extension enabled
QGnomePlatform not working/not respecting dark theme?
Welcome and introduce yourself - 2022
Why refresh rate drops to 30Hz?
Buzzing noise from speakers when using external sound card
[HowTo] Find system information
I cant install linux
Very long firmware boot time
Can't boot since system update .Failed to start Load Kernel Modules
No image on the second monitor when the nvidia driver is set,
Manjaro does not boot after installing a new Kernel-dropped Into emergency shell, for people who think they have a big problem but are actually just noobs
Tuxedo-Control-Center, tccd.service does not start
Airpods pro low volume (applied fix but needs re-pairing)
Laptop doesn't any reaction on lid close
Second Monitor gone after initial setup from bootable pendrive
Weird Screen after plugging in charger on low battery
Intel Wifi card is not detected after Suspend crash (manjaro windows 10 dual boot)
Qbittorrent won't start
Mpv is taking time to intiate
Is my app use a discrete graphics card (NVIDIA)?
Is this a RAM issue?
No Wifi Adapter found
Internet Connection breaks up regularly
Nvidia-smi: no devices were found
Reset mouse config to default
Nvidia-smi: no devices were found
I am unable to delete a file that is using space in my usb pendrive and not showing that fille
PCM2902 Audio Codec USB mic not working
Unable to connect to wifi after update. Ethernet works fine
Laptop cpu is overheating
Red curtain of death after battery died
How do I configuring a new storage SSD?
I can't close my computer
Sudo issues and invalid or corrupt package
Lost Wifi Capabilities overnight
Is my cpu that bad
Update infinite loop
Screen Brightness Changing Randomly
A faliure occurred when I try to install chromium-wayland-vaapi
Bug report Manjaro Gnome kernel 5.16/5.17 sluggish/freezes on i5-8500 UHD630
Most of the time boots to black screen
Only an external monitor is detected on Laptop after Update (NVIDIA)
Installing Drivers for AMD RX 6500 XT
How to switch between audio controller profiles fast?
Sound not working Only Dummy output
One or more files did not pass the validity check when building android-studio
Problem with the graphics in Manjaro of my laptop lenovo z50
Tweak Manjaro to run faster than WIN10
My laptop's ui is way too small
I can't execute prime-run
Bluetooth adapter not found problem
Cant put Scale in 200%
Did brightness depends from graphics cards?
Failure on build() when installing packages from the AUR
Four applications stopped working
App base on electron13 (13.6.9-1) start failed on kde (5.24.2) wayland session
Media keys on lenovo keyboard SK-8823 stopped working
Serious wifi issues
Wine is not working on Manjaro linux KDE Plasma
Games freezes mid game along with display and few applications
Screen Rendering issue
Monitor not detected anymore after system/packages update
After installation I can only see one partition and its a read only
Cannot connect using bluetooth after swapping motherboard
Unable to write to non-system drives
No wifi since change to iwctl
Stable update is breaking my wireless connection
Team Viewer / Anydesk problems
Mouse and keyboard not responding on laptop
NetworkManager: no secrets: No agents were available for this request
Can't connect to wifi
Mesa-amber 21.3.8-4
Second Partition filling up Root Partition
Qt5-base signature is unknown trust
Vulkan Radeon performance issues
Manjaro GNOME, "Activities" not response at initial, after search something works again
Manjaro loads the graphical installer but freezes within the first second
Laptop doesn't conect to wifi after suspending
None of the wallpaper apps works
Stuck in Emergency Mode after update
Pc does not let you remove files from the flash drive
Battery status and icon missing
Baja Resolución de pantalla
Actualizar los drivers nvidia en mi sistema Manjaro 5.15.46-1-MANJARO
My dgpu is recognized on vulkan games but aint recognized on opengl
Can't boot when the power cable is not plugged in
How to make TP-Link Archer T3U work?
ProtonVPN " Unknown error occurred"
GNOME 42 broke my Bluetooth
Wirelesss mouse not working
Bug after update
Since Stable update 2022-07-18 & 2022-07-12, my system has high IO lag for first operations
How to apply themes for kde applications?
Wifi Device not found
Trying to get my GPU to work
Black screen after latest update on linux 515
Just Tried Installing and Did NOT Work!
Don't run a command you don't know
Libopenvdb.so.9.1: cannot open shared object file
Unable to respond to a message
Which graphic driver should i install?
Caffeine-ng not opening after new update
Fans keep spinning for no apparent reason
Brightness at 100 but screen is very dim
I get the message that the package is wrong or corrupt
Cannot update system any more - package manager freezes
Unable to get to chroot because my current login not in sudoers file
Chromium crashing upon launch and never opening
VPN connection not working after update
Gazebo Installation Help through AUR or Paru
My rtl8812au isnt working
Restart instead of shutdown manjaro
Cannot upgrade from AUR because of git: no tracking information for the current branch
An Issue with a Corrupt Firefox Browser
Support Kde plasma. please)
Package Manager Failed to prepare software
Ufw world writeable
Intel AX210 is not working correctly
[HowTo] Solve problems with the xone driver in Manjaro
[HowTo] Receive better support
Gnome-boxes crash on launch after cloning an other VM
Power throttling, CPU won't use all available power, weird CPU usage readings and stutter in all games
Database Error - Latest Update for Manjaro Gnome
Headset only available for one account at a time
Battle.net Issue to Start
PC crash when using controller
Have not been able to update in months due to AUR package failing to build
Help to install espanso-wayland
Bluetooth devices not working
No default controller available - Bluetooth
Kodi Crashes/closes with any addon
Steam Client: Could not connect to Steam Network... error
Steam crashes proton games while heroic and pure wine doesn't
A secondary connection of the base connection failed
Sound has gone from laptop

You can also use Ctrl + E on keyboard

Or 4 spaces at the start of a line

1 Like

HTML can be used as well:

<pre><code>
type or paste code here
</code></pre>

2 Likes

I found these resources helpful to learn about markdown, discourse, and the Manjaro forum.