Support » Fixing WordPress » [Plugin: SyntaxHighlighter Evolved] LTR Code on RTL Arabic Page

Viewing 5 replies - 1 through 5 (of 5 total)
  • No idea honestly. I didn’t write the JS/CSS my plugin uses.

    You may need to make a custom CSS file.

    I did wrap the whole code in a <p dir="rtl"> but that didn’t help. CSS didn’t help either.

    Any idea where exactly is the JS formatting?

    Hey Tawqee3

    I had the same problem, all you have to do is simple fix in the core CSS file:
    wp-content/plugins/syntaxhighlighter/syntaxhighlighter/styles/shCore.css

    Add the following in this .syntaxhighlighter classname:
    direction: ltr !important;

    Thie forces the main div to render the text inside it to LTR on RTL pages.

    Regards,
    Abdulrahman

    Thnx my fellow Arab friend, Abdulrahman 🙂

    Modifying that file is no longer needed. I added it to my plugin a long while back. 😉

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: SyntaxHighlighter Evolved] LTR Code on RTL Arabic Page’ is closed to new replies.