Paste RTF text to OneNote while retaining formatting

Post your working scripts, libraries and tools
Posts: 1
Joined: 13 Jun 2017, 09:07

Paste RTF text to OneNote while retaining formatting

13 Jun 2017, 22:48

When you copy code from IDE's such as Eclipse the format of copied text is RTF. This is not supported by OneNote. So, only plain text is copied without formatting.

But, Microsoft Word supports RTF. If you copy the code to RTF the formatting is retained and the text is converted to HTML format. Now if you copy this text from Word back to OneNote, the formatting is retained because now it's HTML and not RTF.

So, I wrote this little script that does this.

I'm new to AHK. So, there might be better solutions to this. But so far I'm satisfied with the outcome. I just posted in case someone else might find it useful.

Code: [Select all] [Expand] [Download] (Untitled.ahk)GeSHi © Codebox Plus

Return to “Scripts and Functions”

Who is online

Users browsing this forum: No registered users and 29 guests