-
Notifications
You must be signed in to change notification settings - Fork 655
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
Default tab size = 4 #159
Comments
That's already been done (ref): pre {
/*[[tab-size]]*/
} And the settings on userstyles are set as follows: |
Ah, alright, I never noticed because I install from GitHub. Maybe I'll add a default size of 4 then. |
@Mottie could this work when you replace the fields on userstyles.org with just the number? My Firefox happily accepts pre, .highlight {
tab-size: /*[[tab-size]]*/ 4 !important;
-moz-tab-size: /*[[tab-size]]*/ 4 !important;
} Sample file: https://github.com/NodeBB/NodeBB/blob/master/app.js |
Went ahead and commited it. @Mottie please remember to change the tab-size option fields on userstyles.org to just numbers on next release. I'll leave this issue open as a reminder. |
Looking good on userstyles.org, thanks! |
Oh, oops! I forgot to close this issue ;) Thanks :P |
GitHub's default sheet uses a tab-size of 8, which results in some misalignment on code which uses tabs ands expects a size of 4 (which is pretty common). We could fix this with:
Should I go for it? Any opinions?
The text was updated successfully, but these errors were encountered: