Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I find long code cross one line is really difficult to read, so I add the word wrap(自动换行) feature, which also has to disable default line numbers.
Before
After
More examples
How to configure hexo for word wrap
_config.yml
in your blog's root folder to disable theline_number
hexo-server
to make preview displays properlyFeature request
I have another idea, but I don't know how to achieve it. Apply word wrap according to the config in the blog's root
_config
file:Case
line_number: true
Use the normal scroll to view more of a long line.
Case
line_number: false
Use word wrap.