Using Tab to indent code in code block (Gutenberg)
-
Hello, my name is Ben and I have been using WordPress for about 4 years.
I need help regarding the Gutenberg Editor. It has a <code> block for forum posts but it is quite hard to use, because it does not support indent formating, because pressing tab does not work. I have seen forum posts regarding this topic, which are about 5 years old, so I assume, that there is no actual solution to this issue yet.Is there a way I can fix this on my own? Inserting a JS-Script, installing a plugin, pressing something like CTRL+Shift to indent instead.
Yes I am aware, that you can preformat the code in another program and paste it. I also have a plugin called „Syntax-highlighting Code“, which helps with the formating in terms of coloring. The library Prism.js helps with that as well.
But code with no indent is not getting any indent after the plugin or js library either.
I would love to hear some suggestions and if WordPress / Gutenberg Editor Developers will add a feature for this eventually!
Thank you so much!
Ben -
-
Hallo, entschuldige die falsche Sprachwahl.
Es gibt hier nicht spezifisch eine URL. Das Problem gilt für jede WordPress Webseite die den Gutenberg Editor verwendet. (also keinen ergänzenden installiert hat). -
Ich versuche nur rauszukriegen, ob du überhaupt im korrekten Forum bist, da niemand die Forumsregeln liest, bevor er/sie hier postet…
Bitte lesen: https://wordpress.com/de/forums/topic/hier-keine-selbstgehosteten-blogs/