Collapsible Code Sections in Joplin Notes
If you are like me, and you're adding tons of code snippets into Joplin Notes while wishing some sort of collapsible code block option existed - I have a quick work around that I've found to be useful.
The following markdown will give you a collapsible code section within a summary.
<details>
<summary>Click to see code. </summary>
```
from pwn import *
r = remote("10.10.10.1", 80)
cyc = cyclic(3000)
buffer = "A" * 200
payload = buffer + cyc
r.send(payload)
......
```
</details>
This gives you the following
Click to see code.
from pwn import *
r = remote("10.10.10.1", 80)
cyc = cyclic(3000)
buffer = "A" * 200
payload = buffer + cyc
r.send(payload)
......
This allows me to include snippets of code for quick viewing, along with attached scripts .. or if I want, the entire script in an collapsible code block. When exported to PDF - the block is not expanded. I tend to include links below the block that I prettify in post.
I hope you find this useful.