Sibling code blocks are automatically merged into a block with tabs to switch
between them. To prevent two adjacent code blocks from merging, separate them with
Example of two code blocks merged:
import sentry_sdk sentry_sdk.init("https://examplePublicKey@o0.ingest.sentry.io/0");
A second example with three code blocks that have file names set:
#!/usr/bin/env python print "Hello World"
Another code block with different languages for comparison:
Code without title:
nolang all alone
No language combined with Python:
Three code blocks, where the second forced a break from the first (
print "I am block 1"
print "I am block 2"
Example usage in a nested structure:
Creation of the SDK (sometimes this is hidden from the user):Copied
echo "Some code outside"
If two blocks share the same language and get merged, they get enumerated:
I am block 1