Do you complain about code block default line wrap in PDF view in Mobile App?

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.

I always enable code wrapping in any editor because scrolling horizontally just to be able to read the content is a no-go in general, and especially on small screens with long lines, so I think that this addition would be very welcome.

1 Like

Code block default line wrap on Iphone and Android look like this:


1 Like

@tomasz86 Thanks for your positive replay about code block automatic line wrapping feature. This PR has been merged, let's look forward to the next mobile version.

1 Like