Not logged in. · Lost password · Register
Forum: General Help and Support Templates and Layout RSS
Just displaying plain text without changing the formatting?
Avatar
Spud #1
Member for 2 weeks · 4 posts · Location: Australia
Group memberships: Members
Show profile · Link to this post
Subject: Just displaying plain text without changing the formatting?
I want to paste something like this:

docker run -d \
    --name zm_db \
    --restart always \
    -e MYSQL_USER=user \
    -e MYSQL_PASSWORD=pass \
    -e MYSQL_DATABASE=zm \
    -e MYSQL_ROOT_PASSWORD=pass \
    -e MYSQL_ROOT_HOST=% \
    --net net \
mysql/mysql-server:5.7

But after pasting it I get this:

docker run -d \

     1. -name zm_db \
     2. -restart always \
     3. e MYSQL_USER=user \
     4. e MYSQL_PASSWORD=pass \
     5. e MYSQL_DATABASE=zm \
     6. e MYSQL_ROOT_PASSWORD=user \
     7.e MYSQL_ROOT_HOST=% \
     8. -net net \

mysql/mysql-server:5.7

So there must be an option I'm missing (probably staring me in the face) where I can just copy and then paste exactly like the original text without having the first "-" removed and placing numbers in front of each line.

And before anyone comments, no that isn't the mysql root password! :)

Thanks in advance.
Avatar
pop #2
Member since Nov 2016 · 169 posts
Group memberships: Members
Show profile · Link to this post
Use <code>..</code>  or  <nowiki> ... </nowiki>

The syntax for all built-in formatting is easily to be found in the sitemap of your wiki under wiki/syntax.
Avatar
turnermm (Moderator) #3
Member since Oct 2009 · 4688 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
In reply to post #1
You can achieve this with the skipentity plugin, for instance: https://www.mturner.org/devel/playground/skip_entity
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
Spud #4
Member for 2 weeks · 4 posts · Location: Australia
Group memberships: Members
Show profile · Link to this post
Excellent thanks guys!
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-08-19, 16:24:21 (UTC +02:00)