On the mobile end of Evernote, code blocks will automatically wrap. Notes can only be dragged up and down, and cannot be dragged left or right, so that drag note will not shake left or right at all.
On the desktop side of Joplin, we can add CSS code in "userstyle.css",
code{
white-space: pre-wrap;
}
To automatically wrap code blocks, but the mobile end currently does not support adding custom CSS code.
As you know, the screen on the mobile end is very small. In the current version, code blocks do not automatically wrap. To see the complete code, you need to scroll the horizontal scrollbars of the code blocks left and right. If there is a lot of code, you need to drag the scrollbars back and forth to see the complete code, which is very troublesome.
I submitted a Pull Request(#8626) to achieve code block default line wrap in PDF view in Mobile App, the PR has not yet been merged into the official version of Joplin. Developers would like to hear our opinions.
If the PR is merged, do you complain about code block default line wrap in PDF view in Mobile App? If you think default line wrapping not necessary, please reply with a reason. Agreers are also welcome to reply.