Rasheed Bydousi
Member
Posted 4 years ago #
Hello
I am using a wordpress blog with a foreign language and the text direction is right to left.
When writing a new post and adding a code (using any syntax highlighting plugin)it is not shown as it should be.
You can see the result here:
http://www.ar-wp.com/images/code.gif
I need the code be shown left to right NOT right to left.
I also tried to add <p align="left"> to the code but it is not working.
Any ideas ?
Thanks...
<span dir="ltr"> your stuff here </span> doesn't work?
Rasheed Bydousi
Member
Posted 4 years ago #
Hello moshu.
No , it is not working.
I just found a solution here:
http://codex.wordpress.org/Writing_Code_in_Your_Posts
With adding these lines to style.css:
-------------------------------
pre {border: solid 1px blue;
font-size: 1.3 em;
text-align: left;
color: blue;
margin: 10px;
padding:10px;
background: #FFFFB3}
code {font-size:1.2em;
color: #008099}
-------------------------------
Then i write the code inside post like that:
http://www.ar-wp.com/images/code3.gif
-------------------------------
The result:
http://www.ar-wp.com/images/code2.gif
---
Is there any method of one click is copying the code instead of selecting it manually ?
Thanks