I have to write some documents that will include source code examples. Some of the examples will be written from the IDE, and others would be written in place. My examples a
On a Mac I find this solution with vim to be wonderful:
https://github.com/zerowidth/vim-copy-as-rtf