Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upsyntax highlighting for code blocks #349
Comments
This comment has been minimized.
This comment has been minimized.
jonathandturner
commented
Nov 19, 2018
|
Seconded - I don't see any syntax highlighting in the other sections either, and I think that could help with readability. |
ashleygwilliams
changed the title
Getting Started is hard to read
syntax highlighting for code blocks
Nov 20, 2018
ashleygwilliams
added
enhancement
design
labels
Nov 20, 2018
ashleygwilliams
added this to the beta launch milestone
Nov 20, 2018
ashleygwilliams
modified the milestones:
beta launch,
end-of-year
Nov 29, 2018
This comment has been minimized.
This comment has been minimized.
andrei-cacio
commented
Nov 29, 2018
|
I would like to help with this if there isn't somebody already working on it |
This comment has been minimized.
This comment has been minimized.
andrei-cacio
commented
Dec 2, 2018
•
This comment has been minimized.
This comment has been minimized.
rugk
commented
Dec 2, 2018
|
Oh that's hard. I guess the black background version has the best contrast (also mind WCAG), but it looks a little too strong compared to the red background. Could not you maybe try another syntax highlighting style (i.e. foreground/text color set)? |
This comment has been minimized.
This comment has been minimized.
andrei-cacio
commented
Dec 2, 2018
|
Yeah, I think it is a good idea to keep the original background. I will try to find a better highlight to match the white background. |
This comment has been minimized.
This comment has been minimized.
andrei-cacio
commented
Dec 2, 2018
•
This comment has been minimized.
This comment has been minimized.
|
The best/most-likely-to-work thing here is going to be a white background, possibly with the Tomorrow theme. We're using white throughout the site, so it shouldn't look weird, and Tomorrow is the current theme used for API docs is either Tomorrow or something very close to it. |
This comment has been minimized.
This comment has been minimized.
andrei-cacio
commented
Dec 5, 2018
|
I have found a light theme which passes the audit: https://github.com/ericwbailey/a11y-syntax-highlighting Thoughts? |
This comment has been minimized.
This comment has been minimized.
rugk
commented
Dec 5, 2018
|
Looks good, IMHO. |
This comment has been minimized.
This comment has been minimized.
andrei-cacio
commented
Dec 6, 2018
|
Awesome ! I will prepare a PR then. |
This comment has been minimized.
This comment has been minimized.
andrei-cacio
commented
Dec 7, 2018
andrei-cacio
referenced a pull request that will
close
this issue
Dec 7, 2018
Open
[WIP] Syntax highlighting for code blocks #606
This comment has been minimized.
This comment has been minimized.
|
Here's another idea: Give This works very well with the design of the website. However, a dark theme might not look as good in the white sections. I have a few ideas for this:
|
This comment has been minimized.
This comment has been minimized.
sondr3
commented
Dec 12, 2018
|
As someone who is red-green color blind the |
This comment has been minimized.
This comment has been minimized.
andrei-cacio
commented
Dec 16, 2018
This comment has been minimized.
This comment has been minimized.
andrei-cacio
commented
Dec 17, 2018
•
Right now only the |
This comment has been minimized.
This comment has been minimized.
andrei-cacio
commented
Dec 17, 2018
|
@sondr3 would the dark theme be more suitable? |
This comment has been minimized.
This comment has been minimized.
sondr3
commented
Dec 17, 2018
|
I like the dark one better but am normally a bigger fan of light background. It looks fine in the README, I think you should just be careful not to combine the light theme with a red background. |










alercah commentedNov 19, 2018
Separately from my comments on #348, the styling makes the Getting Started page really hard to read for me. The thick colour bands are attractive as a marketing thing, or showing off individual features that aren't strongly connected, but I find them extremely disruptive when I'm trying to do a more careful read.
Additionally, there's no syntax highlighting on the code, which really hurts especially given that it's the first code I see coming through the site.