Repository navigation
Syntax highlighting for ASDL #84697
Description
Activity
ASDL is around here for a long time, and it was showed as raw text on documentation (under library/ast), IMHO it would be great to highlight it.
- addeddocsDocumentation in the Doc dirDocumentation in the Doc dirtype-featureA feature request or enhancementA feature request or enhancement
on May 5, 2020 - addeddocsDocumentation in the Doc dirDocumentation in the Doc dirtype-featureA feature request or enhancementA feature request or enhancement
on May 5, 2020 +1
I really like this idea but it needs different styling. Attaching a screen shot will significant readability and beauty issues.
Suggest:
- Boldfacethe class names (Module, Interactive, etc)
- Unboldface the fields names (body, types_ignores, argtypes, etc)
- The tinted grape color does not work well on the green background.
- Perhaps have a graphic designer take a look.
Oh, sorry for that bad look :/ I just want it to look consistent, let me see what I can do further (I'll probably consult a friend of mine who understand this things). By the way, I could've just adjust the values over the existing code if you didn't revert, the core logic would be same we just need to change token types.
Sorry about the commit/revert. I fat fingered a comment. Please do resubmit the PR. In general, this is a nice idea. The look just needs to be tweaked a bit.
Hey Raymond, can you give me your feedback on asdl.png (the screenshot of new theme)?
The new screenshot looks nice. The colors are much better. Can you post another run with the class names in bold.
3 remaining items
Attaching 2 different styles python_bold.png (module <Python> is bold) and asdl_no_style.png (module <Python> has no style)
I tried both a laptop and desktop and slightly prefer unbolded. How about a darker blue?
I tried both a laptop and desktop and slightly prefer unbolded. How about a darker blue?
Sorry but I have no control over styles. They are pre-defined, I only change the token type and pygments handles the rest of it. I dont know if such a color exists.
Thanks for producing the comparison panel. In side-by-side views, python_bold.png looks best to me with asdl2.png as a close second.
I've found a bold dark blue, which I guess suits both your and @terry.reedy recommendations. How does bold_dark_blue.png looks?
I say merge it :)
I've updated the PR with bold_dark_blue.png changes.
Thanks for the contribution. It looks much nicer than what we had before.
Thank you all for your reviews for styling, also I have to thank https://github.com/CyberSaxosTiGER for his external reviews on the color scheme.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields: