Hi,
You can download and drag and drop import the file. It contains 3 tiddlers.
- cmd-code-macro-test
- cmd-code-macro
- $:/core/macros/copy-to-clipboard
At the moment the core copy-to-clipboard macro can't handle single backtick code eg: `cd c:\` so I needed to modify the core copy-to-clipboard macros.
cmd-code-macro contains
.code, .cmd and _cmd macros. The tiddler cmd-code-macro-test contains some examples, which you can see in edit-mode.
The whole thing is a bit hacky at the moment. So I may create a pull-request on github. But I'm not 100% sure how it can be improved and I don't have more time atm.
have fun!
mario