I often use code blocks to represent small files, and it would be great to be able to be able to right-click save these to a local file. This is similar to the existing “Export selection…” right-click menu that already shows up on code blocks, but that menu option asks if I want to create a PNG/JPG/PDF of the code block, which I usually don’t want. Maybe we could add another export file type to this list? The type that matches the current code block’s selected language.
I’m not sure how this would work with multiple selection but I am personally most interested in using this for a single code block selection