memos icon indicating copy to clipboard operation
memos copied to clipboard

Automatic line wrapping for code that exceeds the display area and line number display

Open PlutoNameless opened this issue 1 year ago • 0 comments

Describe the solution you'd like

These are two requested requirements:

  1. When using code blocks, if the length of the code exceeds the current display width, the code should automatically wrap instead of displaying a horizontal scrollbar. However, the code should only be wrapped for display purposes, and when copied, it should remain in a single line.
  2. Each line of code should be prefixed with a line number, indicating its position within the current code block. The line numbering should be independent for each code block, meaning that if there are two code blocks in the same content, the second block's line numbers should restart from 1.

If possible, it would be ideal for these two features to have a toggle in the settings to enable or disable them.

Type of feature

User Interface (UI)

Additional context

In my notes, I often include some code blocks. Although I can currently record the code blocks, the reading experience is not ideal, especially when dealing with large sections of code.

PlutoNameless avatar Oct 20 '24 19:10 PlutoNameless