Not logged in. · Lost password · Register
Forum: General Help and Support Templates and Layout RSS
How to change <pre class="code cpp">
Avatar
Kochol #1
Member since Mar 2007 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: How to change <pre class="code cpp">
Hi

I use the wiki in right to left direction but i want change the <pre class="code cpp"> to <pre dir="ltr" class="code cpp">

How I can do this.
chi #2
Member since Jun 2006 · 1851 posts · Location: Munich Germany
Group memberships: Members, Super Mods, Wiki Managers
Show profile · Link to this post
Hi,

this should be possible by using CSS. Insert the following into your <dokuwiki>/conf/userstyle.css (if this file doesn`t exists you have to create it).

div.dokuwiki pre.cpp {
  direction: ltr;
}

chi
Please add [SOLVED] to the initial thread subject if you feel your question has been answered.
If my answer doesn't make sense maybe your question didn't either - just visit http://facepalm.org.
Avatar
Kochol #3
Member since Mar 2007 · 2 posts
Group memberships: Members
Show profile · Link to this post
Tanks a lot it worked.
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-05-23, 05:33:59 (UTC +02:00)