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

Add the ability to word-wrap or limit line length #364

Open
lquerel opened this issue Sep 12, 2024 · 0 comments
Open

Add the ability to word-wrap or limit line length #364

lquerel opened this issue Sep 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@lquerel
Copy link
Contributor

lquerel commented Sep 12, 2024

We should be able to define the maximum line length for comments, for example. Several approaches are possible:

  1. Add a word_wrap filter that would take a maximum number of characters per line as a parameter.
  2. Add an optional parameter to the existing indent filter to specify a maximum number of characters per line, accounting for indentation.
  3. Add a configuration option in the comment_formats section to specify the preferred maximum line length for comments, per language.

These options are not mutually exclusive. Personally, I would be inclined to start with 2 and 3.

@lquerel lquerel added the enhancement New feature or request label Sep 12, 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
Status: No status
Development

No branches or pull requests

1 participant