WordPress.org

Support

Support » How-To and Troubleshooting » scrollbar in pre tag not working

scrollbar in pre tag not working

  • ceejay5656
    Member

    @ceejay5656

    On the text tab Editor, I entered the Pre HTML tags and pasted some PHP code that exceeds the width of the area inside them.

    I do not get an automatic scrollbar, the code wraps instead.

    I have also tried adding a style to the pre tag of

    style=”overflow-x:auto” but no difference.

    How do I get the pre tag to activate a scrollbar and not automatically wrap the text?

Viewing 1 replies (of 1 total)
  • ceejay5656
    Member

    @ceejay5656

    For anyone how may stumble upon this, I installed the plug-in “Syntax Highlighter MT.”

    I can now format my code in posts using the pre tag with a working horizontal scrollbar when it is needed.

Viewing 1 replies (of 1 total)
  • The topic ‘scrollbar in pre tag not working’ is closed to new replies.