Not logged in. · Lost password · Register
Forum: General Help and Support Syntax and Usage RSS
Code Text with --
Avatar
gerega #1
Member for 3 months · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: Code Text with --
Hi, if I type -- in the code text element e.g. ''$ journalctl --since'' dokuwiki transforms the double minus to one long minus: ''$ journalctl -since'' ...


Okay, found a solution: needs to type %%--%%
Avatar
MartinR #2
Member since Jul 2015 · 190 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
Marginally better to use %%$ journalctl --since%%.
Avatar
LarsDW223 #3
Member since Sep 2014 · 475 posts · Location: Paderborn
Group memberships: Members
Show profile · Link to this post
The proper solution seems to be to create the file conf/entities.local.conf and use it to disable the behavior, see https://www.dokuwiki.org/entities.
Avatar
MartinR #4
Member since Jul 2015 · 190 posts · Location: UK
Group memberships: Members
Show profile · Link to this post
@Lars, that would be fine if you never wanted the standard behaviour on any page.  If you just want to disable the substitution for a single instance then  using "%%".  See the section "No Formatting" in the syntax guide.
Avatar
LarsDW223 #5
Member since Sep 2014 · 475 posts · Location: Paderborn
Group memberships: Members
Show profile · Link to this post
@MartinR: you are right.

It seems that the line is a code snippet so <code>$ journalctl --since</code> would also work but it would generate an own paragraph.
Avatar
ach (Administrator) #6
Member since May 2006 · 1958 posts · Location: Folkestone, UK
Group memberships: Administrators, Members, Super Mods, Wiki Managers
Show profile · Link to this post
Or install the UnformattedCode plugin.
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: 2020-04-06, 03:44:58 (UTC +02:00)