Adding code blocks

I didn’t find out why it doesn’t let me add a second code block via the Ctrl E sign </> like it works when open a topic new and hit the Ctrl E Sign </> directly and get the empty block and can then add code into it. But the moment I write normal text before and after it, I can hit the Ctrl E sign </> as often as I like some lines under the last text or near it or above it or what but not code block appears afterward. And I paste code always unformatted with Ctrl+Shift+V

This then happens, when hitting the block sign first an then putting text into it by ctrl+shift+V. Do I have to put in 2 .or 3 codeblocks before adding one letter elsewhere???





Text1



Text 2

Like that???

After I wrote "Like that???? above no code-block function anymore.

I usually just add it manually - 3 backticks to start the block, 3 backticks to end it.


ljfalfjalfjaldfj

```
```

Second backtickgroup doesn’t work. Am getting mad with this.

Don’t know what to tell you, I still can’t replicate this. Can you post a screenshot of your post edit before actually posting? The web source is impossible to decipher.


Typing three backticks bevor added a letter text the box comes. Now its over after this text.
```
```
It work only directly when I dont type a letter bevor or afterward.




t
```
```

I would suggest asking a forum moderator to split this post as most of the responses are related to code-blocks instead of the title. It would get a lot more eyes that way.

@pete67 , try toggling this setting and see if it makes things any easier.

To write a code block, it’s as you’ve done, but perhaps turn off the rich text editor mode. I find I end up wrestling with that as it tries to automate things.

Code blocks:

```
Some code and such here
```

kafj

Dosn’t work either.

Typed “kafi” is enough to kill the function with the backticks and the block.

boah, now it works. Don’t understand why but the rich text editor solves it.

Test

and

Test2

With rich text editor it seems to work.

Code block


second block


root@EndeavourOSNeo-Machine petermb]# ss -tuln
Netid       State        Recv-Q        Send-Q                                    Local Address:Port                Peer Address:Port       
udp         UNCONN       0             0                                               0.0.0.0:5353                     0.0.0.0:*          
udp         UNCONN       0             0                    [fe80::c1c9:a213:8d49:bee2]%enp7s0:546                         [::]:*          
udp         UNCONN       0             0                                                     *:1716                           *:*          
udp         UNCONN       0             0                                                     *:51579                          *:*          
udp         UNCONN       0             0                                                  [::]:5353                        [::]:*          
tcp         LISTEN       0             4096                                          127.0.0.1:631                      0.0.0.0:*          
tcp         LISTEN       0             50                                            127.0.0.1:12702                    0.0.0.0:*          
tcp         LISTEN       0             50                                                    *:1716                           *:*          
tcp         LISTEN       0             50                                                    *:8090                           *:*          
tcp         LISTEN       0             4096                                              [::1]:631                         [::]:*          
[root@EndeavourOSNeo-Machine petermb]# ss -tuln | grep LISTEN
tcp   LISTEN 0      4096                            127.0.0.1:631        0.0.0.0:*
tcp   LISTEN 0      50                              127.0.0.1:12702      0.0.0.0:*
tcp   LISTEN 0      50                                      *:1716             *:*
tcp   LISTEN 0      50                                      *:8090             *:*
tcp   LISTEN 0      4096                                [::1]:631           [::]:*
[root@EndeavourOSNeo-Machine petermb]#

copy text you desire to paste over here. Then past it over here. Select the newly copied text and the press CTRL+E and then it will enclose the entire text

seems cooking dinner took longer than expected oh well as long as Op has a working solution.

[root@EndeavourOSNeo-Machine petermb]# firewall-cmd --info-service=mdns
Authorization failed.
mdns
ports: 5353/udp
protocols:
source-ports:
modules:
destination: ipv4:224.0.0.251 ipv6:ff02::fb
includes:
helpers:
bash: Authorization: Kommando nicht gefunden
[root@EndeavourOSNeo-Machine petermb]# firewall-cmd --info-service=ssh
ssh
ports: 22/tcp
protocols:
source-ports:
modules:
destination:
includes:
helpers:
[root@EndeavourOSNeo-Machine petermb]# python3 -c "import socket; s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM); s.sendto(b'\x02\x01\x
00\xff'*100, ('target_ip', 427))"
Traceback (most recent call last):
File "<string>", line 1, in <module>
import socket; s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM); s.sendto(b'\x02\x01\x00\xff'*100, ('target_ip', 427))
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -2] Name or service not known
[root@EndeavourOSNeo-Machine petermb]# ss -tuln
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port
udp UNCONN 0 0 0.0.0.0:5353 0.0.0.0:*
udp UNCONN 0 0 [fe80::c1c9:a213:8d49:bee2]%enp7s0:546 [::]:*
udp UNCONN 0 0 *:1716 *:*
udp UNCONN 0 0 *:51579 *:*
udp UNCONN 0 0 [::]:5353 [::]:*
tcp LISTEN 0 4096 127.0.0.1:631 0.0.0.0:*
tcp LISTEN 0 50 127.0.0.1:12702 0.0.0.0:*
tcp LISTEN 0 50 *:1716 *:*
tcp LISTEN 0 50 *:8090 *:*
tcp LISTEN 0 4096 [::1]:631 [::]:*
[root@EndeavourOSNeo-Machine petermb]# ss -tuln | grep LISTEN
tcp LISTEN 0 4096 127.0.0.1:631 0.0.0.0:*
tcp LISTEN 0 50 127.0.0.1:12702 0.0.0.0:*
tcp LISTEN 0 50 *:1716 *:*
tcp LISTEN 0 50 *:8090 *:*
tcp LISTEN 0 4096 [::1]:631 [::]:*
[root@EndeavourOSNeo-Machin

That happens when rich text is on. CTRL+E marks it as single words.

not sure why that happened It always has worked for me doing so as described. Not sure why its breaking up for you? interesting.

In richt text it works like blink showed

socket.gaierror: [Errno -2] Name or service not known
[root@EndeavourOSNeo-Machine petermb]# ss -tuln
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port
udp UNCONN 0 0 0.0.0.0:5353 0.0.0.0:*
udp UNCONN 0 0 [fe80::c1c9:a213:8d49:bee2]%enp7s0:546 [::]:*
udp UNCONN 0 0 :1716 :
udp UNCONN 0 0 :51579 :
udp UNCONN 0 0 [::]:5353 [::]:

tcp LISTEN 0 4096 127.0.0.1:631 0.0.0.0:

tcp LISTEN 0 50 127.0.0.1:12702 0.0.0.0:*
tcp LISTEN 0 50 *:1716 :
tcp LISTEN 0 50 :8090 :
tcp LISTEN 0 4096 [::1]:631 [::]:

Ctrl + G doesn’t work for me it seems. I cannot imagine what is so diffrent from my system to any other.

Picture works to paste???

But code block only with backticks.

[root@EndeavourOSNeo-Machine petermb]# firewall-cmd --info-service=ssh
ssh
  ports: 22/tcp
  protocols: 
  source-ports: 
  modules: 
  destination: 
  includes: 
  helpers: 

``

I intensely dislike the Rich text input, never spotted how to disable, thanks!!

here is a basic inxi of my system

 thefrog@thepad:~  inxi -baz
System:
  Kernel: 7.1.2-arch3-1 arch: x86_64 bits: 64 compiler: gcc v: 16.1.1
    clocksource: tsc avail: acpi_pm
    parameters: initrd=\ea334668a466485bbbb94ca644cb9cb6\7.1.2-arch3-1\initrd
    nvme_load=YES nowatchdog rw
    root=UUID=474cdf4b-995d-4943-a675-88d61ed4a277
    systemd.machine_id=ea334668a466485bbbb94ca644cb9cb6
  Desktop: LXQt v: 2.4.1 tk: Qt v: 6.11.1 wm: Openbox v: 3.6.1
    with: lxqt-panel,plank tools: avail: slock vt: 2 dm: 1: LightDM v: 1.32.0
    note: stopped 2: SDDM Distro: EndeavourOS base: Arch Linux
Machine:
  Type: Desktop System: Dell product: OptiPlex 7070 v: N/A
    serial: <superuser required> Chassis: type: 3 serial: <superuser required>
  Mobo: Dell model: 0YNVJG v: A02 serial: <superuser required> part-nu: 092E
    uuid: <superuser required> Firmware: UEFI vendor: Dell v: 1.35.0
    date: 09/04/2025
CPU:
  Info: 6-core Intel Core i7-8700 [MT MCP] arch: Coffee Lake speed (MHz):
    avg: 4207 min/max: 800/4600
Graphics:
  Device-1: Intel CoffeeLake-S GT2 [UHD Graphics 630] vendor: Dell
    driver: i915 v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20
    ports: active: DP-1,HDMI-A-2 empty: DP-2, DP-3, HDMI-A-1, HDMI-A-3
    bus-ID: 00:02.0 chip-ID: 8086:3e92 class-ID: 0300
  Device-2: Logitech Webcam C270 driver: snd-usb-audio,uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-12.4.4.4:9
    chip-ID: 046d:0825 class-ID: 0102 serial: <filter>
  Display: x11 server: X.Org v: 21.1.23 compositor: Picom v: 13 driver: X:
    loaded: modesetting alternate: fbdev,intel,vesa dri: iris gpu: i915
    resolution: 1: N/A 2: N/A
  API: OpenGL v: 4.6 vendor: intel mesa v: 26.1.4-arch1.1 glx-v: 1.4
    direct-render: yes renderer: Mesa Intel UHD Graphics 630 (CFL GT2)
    device-ID: 8086:3e92 memory: 38.04 GiB unified: yes
  Info: Tools: api: eglinfo, glxinfo, vulkaninfo de: kscreen-doctor
    x11: xdpyinfo, xprop, xrandr
Network:
  Device-1: Intel Ethernet I219-LM vendor: Dell driver: e1000e v: kernel
    port: N/A bus-ID: 00:1f.6 chip-ID: 8086:15bb class-ID: 0200
  Device-2: Intel Wi-Fi 6E AX210/AX1675 2x2 [Typhoon Peak] driver: iwlwifi
    v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1 bus-ID: 02:00.0
    chip-ID: 8086:2725 class-ID: 0280
Drives:
  Local Storage: total: 15.03 TiB used: 7.19 TiB (47.9%)
Info:
  Memory: total: 40 GiB available: 38.95 GiB used: 4.18 GiB (10.7%)
  Processes: 325 Power: uptime: 1d 11h 58m states: freeze,mem,disk
    suspend: deep avail: s2idle wakeups: 0 hibernate: platform avail: shutdown,
    reboot, suspend, test_resume image: 15.54 GiB
    services: power-profiles-daemon,upowerd Init: systemd v: 261
    default: graphical tool: systemctl
  Packages: pm: pacman pkgs: 1359 libs: 335 tools: pacseek,paru,yay
    Compilers: gcc: 16.1.1 Shell: Bash v: 5.3.15 running-in: alacritty
    inxi: 3.3.40

the above was done with ctrl+c with the normal format so Not sure why it breaks up for you?