Use Tabs inside your DokuWiki editor
I just mixed this together for some texts I need correctly indented for copy&paste.
Plugin is already installable, located at:
https://www.dokuwiki.org/plugin:autotabber
Repo available at:
https://github.com/marcosbl/dokuwiki-plugin-autotabber/
Just press Tab inside the editor
* Tab insertion via the Tab key
* Tab removal via the Shift+Tab key combination
* Multi-line selection support for both Tab & Shift+Tab combos
* Auto indent, it keeps indentation after every new line
* The Esc key temporarily disable Auto Tabber. It is re-enabled once the textarea loses focus
* Adjustable tab size (not yet via config, must edit the JS file, last line)
Sorry if I missed something, installed DokuWiki today for the first time !