-
Notifications
You must be signed in to change notification settings - Fork 23
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
Re-design the API of new feature "alternate line color" #9
Comments
This maybe an over-design, but what if we need an effect of This may leads to an option - highlight-part = <none> | <line> | <line number> | <both> Also a new name, |
Starting from option Options - highlight-lines = <empty> | <selected lines> | <alternate>
- default value <empty>
- highlight-part = <line> | <line number> | <both>
- default value <line>
- background-color = <back line color> | {<back line color>, <back num color>}
- default value {white, white}
- foreground-color = <fore line color> | {<fore line color>, <fore num color>}
- default value {LightCyan, white} Explanations
Other considerations
|
I'd suggest I'm unclear about the distinction between background and foreground colors. When would each be used? The default color must be For the zebra effect (that term may be best just for the shorter spelling), I'd suggest It may be good to go ahead and define I don't think there's a need to allow for more than all colors the same, or zebra. That should cover the majority of standard cases. Anything more will probably introduce a lot of complexity. I'm still thinking about whether any special options for the |
Your response makes things much more clear. Thanks.
It is supposed that if line a is in |
To improve the usability of the feature suggested in #8 , I am re-thinking the options and the beneath logic of the general highlight feature. The re-designed options
highlight-lines
to choose which highlight mode is usedhighlight-line-numbers
to toggle whether highlight the line number partThis is only a design- and pseudo-level discussion, therefore the actual package code in my forked repo is not modified yet.
Original
Options
Logic
Final
Options
Logic
Notes
alternate rows
is more popular thanzebra effect
, the following one is used in issue minted/#211.linenumbersep
, but its function is off-topic to this issue, so it's absent in the current issue.The text was updated successfully, but these errors were encountered: