• Resolved dhavalmakwanacs

    (@dhavalmakwanacs)


    I want to change words in line from scroll to line-break/word-wrap, can you please guide me to change scroll to word-wrap.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Kevin Batdorf

    (@kbat82)

    Maybe we can add some CSS. It might not be easy to accomplish though. If we get it working then perhaps I can add it to the plugin too.

    Can you give me a code sample? Or share a URL (urls shared here are public)?

    Plugin Author Kevin Batdorf

    (@kbat82)

    If you still want to figure this out let me know. Or if anyone else stumbles on this post, open a new issue and let’s talk about it. There are some challenges with doing word wrap but I’m interested in working on it if someone is willing to help test through it. Thanks!

    I fix it by simple css

    .wp-block-kevinbatdorf-code-block-pro code .line{
        white-space: pre-wrap;
    }

    Plugin Author Kevin Batdorf

    (@kbat82)

    Thanks for sharing that snippet. That should work for most cases, but if you use line numbers then it will wrap without consideration and look a bit weird. I think that’s what stopped me from adding it as an option.

    Yes, I am using line numbers and not working that style with line numbers.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘change overflow scroll to word-wrap’ is closed to new replies.