• Resolved efc

    (@eceleste)


    I’ve created an example page that shows the problem on a site using the WP Twenty Twenty theme. I cannot figure out how to stop the lines of code from wrapping. When I look at Prism documentation I do not see this wrapping. It seems to be particularly disruptive when I add line numbers to the code block.

    Any idea how I can prevent this wrapping from occurring?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter efc

    (@eceleste)

    It turns out this was an issue only with Safari. I was able to resolve it with the following CSS in the Customizer > Additional CSS…

    pre.wp-block-code .token {
      word-wrap: initial;
      word-break: initial;
    }
    
    • This reply was modified 4 years, 5 months ago by efc.
Viewing 1 replies (of 1 total)
  • The topic ‘Why do lines of code wrap?’ is closed to new replies.