Some here (i.e., app) wanted a code snippets program, but where not satisfied with what they found.
I'm posting my hack here.
I wanted something that indexed things, and kept syntax highlighting.
Ideally my own note taker: oneNote. Problem is, it doesn't know how to do syntax highlighting.
Here is what I do to use oneNote AND keep syntax highlighting.
I use vim. You may want to use some other editor that allows you to dump html if you don't know vim-fu and are not inclined to spend 10 years training alone in the mountains to learn it.
1. From vim, call :Tohtml
2. ZZ the window that pops up (that's a shortcut for save and close)
3. F3 the resulting file in total commander: will show in a iexplore window inside lister (fast!)
4. Copy chunck you want
5. Paste into oneNote
Since onenote understands html. the syntax is there!
This may work with variations of browser/file manager/editor.
I'm posting my hack here.
I wanted something that indexed things, and kept syntax highlighting.
Ideally my own note taker: oneNote. Problem is, it doesn't know how to do syntax highlighting.
Here is what I do to use oneNote AND keep syntax highlighting.
I use vim. You may want to use some other editor that allows you to dump html if you don't know vim-fu and are not inclined to spend 10 years training alone in the mountains to learn it.
1. From vim, call :Tohtml
2. ZZ the window that pops up (that's a shortcut for save and close)
3. F3 the resulting file in total commander: will show in a iexplore window inside lister (fast!)
4. Copy chunck you want
5. Paste into oneNote
Since onenote understands html. the syntax is there!
This may work with variations of browser/file manager/editor.










VanDragt.com