Create a code block with an output example that doesn't get copied. #235
johnnymatthews
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What's your feature/idea?
When showing users certain commands, it can be useful to show them an example of the output the can expect. This can be achieved in Gitbook by simply adding two code blocks next to each other, one with the code the user should copy, and one with the expect output.
However, it'd be nice to add a section to a code block for expected output that the user can't copy. Something like this:
In the above screenshot, the first part of the code block can be copied by clicking on the Copy button. The output section is not copied.
What's your desired outcome?
Be able to show the expected output of a command within a code block, and have the expected output look different to the rest of the code block so the reader can tell what's going on.
What's the impact of this for you?
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions