• Resolved erikwillemse

    (@erikwillemse)


    It would be nice to have an option in the code block settings to indicate that you want the code inside the block and wrap over different lines.
    I have now added a class in my custom css but an option would be easier for some editors.

    This is my custom css:
    .melonpan_code_wrap code {
    white-space: pre-wrap;
    }

    And I add melonpan_code_wrap class to the block in the Gutenberg settings.

    This seems to work fine. Thanks for considering the change.

Viewing 1 replies (of 1 total)
  • Plugin Author Alvaro

    (@melonpan)

    Thanks for the suggestion!
    This would be very practical. Actually, in the same line, applying a code formatter in some way would be nice too.

    I will keep it in mind. Thank you for the interest!

Viewing 1 replies (of 1 total)
  • The topic ‘Suggestion: word wrap option’ is closed to new replies.