Notes:
- Click on a block of code to select it. Click outside the code to deselect everything.
- Because of the way I used transparency in the demo, inner code blocks are darker than outer code blocks.
- This will probably work better for languages which force proper formatting (e.g., Python). I do not know how well this would work with messy code.