Here's something else TIMU could help me with. Occasionally i want to edit a greasemonkey javascript so i open it in notepad, and it looks like this:
// ==UserScript==// @name Mouseover Popup Image Viewer// @namespace http://w9p.co/userscripts/// @description Shows images and videos behind links and thumbnails.// @version 2015.10.11.1// @author kuehlschrank// @homepage http://w9p.co/userscripts/mpiv/// @icon https://w9p.co/userscripts/mpiv/icon.png// @grant GM_getValue// @grant GM_setValue// @grant GM_xmlhttpRequest// @grant GM_openInTab// @grant GM_registerMenuCommand// @grant GM_setClipboard// ==/UserScript==
but if i paste it into TIMU input box, it looks like this without any editing:
// ==UserScript==
// @name Mouseover Popup Image Viewer
// @namespace http://w9p.co/userscripts/
// @description Shows images and videos behind links and thumbnails.
// @version 2015.10.11.1
// @author kuehlschrank
// @homepage http://w9p.co/userscripts/mpiv/
// @icon https://w9p.co/userscripts/mpiv/icon.png
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_xmlhttpRequest
// @grant GM_openInTab
// @grant GM_registerMenuCommand
// @grant GM_setClipboard
// ==/UserScript==
It would seem in notepad carriage returns aren't being interpreted as carriage return+linefeed. if without edit, i press the output box Copy to Clipboard, the copy will still not have linefeeds when i paste it back into notepad.
But
if i manually select the text in the output box with my mouse, it will have linefeeds! Pasted back into notepad, it will look like the latter!
I have a macro that works on the text in the clipboard, it simply replaces all the carriage returns with carriage return+linefeeds:
using System;
public static class ClipboardFusionHelper
{
public static string ProcessText(string text)
{
return text.Replace("\n","\r\n");
}
}
i copy the "unformatted" javascript in notepad to clipboard, run the macro, paste it right back into notepad, and the text is now "formatted." Perhaps TIMU could do that too.