-
|
Hi is it possible to get code blocks to wrap, so it fits the screen width? Text wrap works fine for normal text, just not the code blocks. In this example I've pasted some sample code between three backticks, and you can see the lines go past the edge. I'm just hoping to see all the code without having to horizontally scroll/drag. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
You can use CSS and Markor's inject-to-head settings option for this. The element that needs to be styled is Documentation: https://developer.mozilla.org/en-US/docs/Web/CSS/white-space |
Beta Was this translation helpful? Give feedback.
-
|
I implemented the feature to wrap words in view-mode code blocks, see PR #2129. |
Beta Was this translation helpful? Give feedback.

You can use CSS and Markor's inject-to-head settings option for this. The element that needs to be styled is
preorcode.Documentation: https://developer.mozilla.org/en-US/docs/Web/CSS/white-space