scrollbar in pre tag not working (2 posts)

  1. ceejay5656
    Posted 2 years ago #

    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?

  2. ceejay5656
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic