Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PlutoNameless opened this issue Oct 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@PlutoNameless
Copy link

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 PlutoNameless added the enhancement New feature or request label Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants
@PlutoNameless and others