-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
Improve visibility of code, kbd and clickable references in editor help #62710
Improve visibility of code, kbd and clickable references in editor help #62710
Conversation
It would be great if the |
Unfortunately, this can't be done unless we add @bruvzg Any ideas on how to tackle this (ideally without adding new tags)? |
Maybe we can use tables with a single cell for codeblocks? Table cells seem to support background colors.
Not sure if we have documentation for the table/cell syntax, I read the RTL code to figure it out. Valid options for |
It can be done without any RTL modification, by using table with single column:
It's gonna cover it full background of the block if all code is added to a singe cell, or each line can be added as a cell and two colors used to get alternate odd/even row backgrounds. |
This adds a background color for inline code, code blocks, keyboard shortcuts and clickable references (such as `[member something]`).
e1ab54e
to
a347650
Compare
@Calinou You could make it a 3x3 table with thin first and last rows and columns (9-patch style), though that feels a bit convoluted. Could maybe be possible to add a Alternatively / longer term, it would be nice to have a proper |
Could this be merged as-is for now? I'm not sure about adding more rows and columns, as it may impact documentation page generation performance. I think it'd be better to add a padding option to |
Thanks! |
This adds a background color for inline code, code blocks, keyboard shortcuts and clickable references (such as
[member something]
).See godotengine/godot-proposals#4804.
Note: Not cherry-pickable to
3.x
unless[bgcolor]
is backported.Preview
All descriptions are from the GraphNode class.