Proposal: Extend EuiCodeBlock for Documentation purposes #5609
Replies: 3 comments 2 replies
-
As a bonus, the current docs system also makes use of numbered dots on the code examples. I don't like these, but haven't come up with a better way to present this data. If someone wants to suggest something that we could bake into EUI, I think that would also be a useful feature. |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
As per my comment here i'd really love the ability to dynamically highlight lines based on their content instead of needing to know the exact line numbers beforehand, i.e. I have some JSON in the code block with logs, some are |
Beta Was this translation helpful? Give feedback.
-
Hi all,
We're currently working on redesigning the Elastic Docs. As you might imagine, these have lots of code examples. I've been playing around with adding some features to the existing
euiCodeBlock
.I'm proposing the following:
At this point I'd love to get some feedback from the EUI team on the direction and design plus any potential problems with what I'm suggesting.
I'm happy to have a first stab at this component if there's nobody available to work on this, I haven't dabbled with emotion yet but this could be a good intro for me.
Beta Was this translation helpful? Give feedback.
All reactions