You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a lot of exercises it is useful to copy code-fragments from the assignment to use them for testing.
This is especially handy in python where the given examples can easily be used in doctests.
However, some of these examples are very long on 1 line (see this example).
In this case it could be very handy to have a button in the top right of this code-block to just copy the whole codeblock to the clipboard.
This would be very similar to the implementation of code fragments in the documentation of some frameworks.
Small example from the prisma-documentation:
The text was updated successfully, but these errors were encountered:
For a lot of exercises it is useful to copy code-fragments from the assignment to use them for testing.
This is especially handy in python where the given examples can easily be used in doctests.
However, some of these examples are very long on 1 line (see this example).
In this case it could be very handy to have a button in the top right of this code-block to just copy the whole codeblock to the clipboard.
This would be very similar to the implementation of code fragments in the documentation of some frameworks.
Small example from the prisma-documentation:
The text was updated successfully, but these errors were encountered: