Feature: Added a code-right-pad option and fixed highlight-lines documentation #245
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.
This PR contains two changes.
First, a small fix in the documentation for the
--highlight-lines
option, as can be seen here:But calling this with the suggested example,
raises the following error:
The proposed change fixes this by removing the space in the string. It also fixes some typos in the documentation comment.
The second change is regarding padding to the right of the code. Sometimes, the generated code screenshot feels somewhat "squished" to me. Here's an example of a C file I tried Silicon on just for fun.
Here is the same code screenshot with the new
--code-pad-right
option set to75
instead of the default25
.It gives more of a gap on the right of the code, like how it is when normally editing code.