Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?

User Image
Mart-Jan Reeuwijk
2 discussion posts
I sometimes hit on linux formatted text, and want the linux endlines be replaced for the system windows uses.

A nice feat would also be to be able to do that visa versa.

in short I want to be able replace in texts: 0x0A by 0x0D0A
Jan 20, 2012  • #1
Keith Lammers (BFS)'s profile on WallpaperFusion.com
I apologize for the delayed response. You should be able to do this with a ClipboardFusion macro, like this:

Code

using System;

public static class ClipboardFusionHelper
{
public static string ProcessText(string text)
{
return text.Replace("\n","\r\n");
}
}

And to do the opposite, just reverse the parameters for text.Replace, like this:

Code

return text.Replace("\r\n","\n");
Feb 1, 2012 (modified Feb 1, 2012)  • #2
Keith Lammers (BFS)'s profile on WallpaperFusion.com
If that doesn't work out though, you can always use Notepad++, it does the EOL conversion on text files automatically using the Edit > EOL Conversion menu :)

Edit: I just tested out the macro I posted above, and it indeed does work :)

Links to the two macros:
Feb 1, 2012 (modified Feb 1, 2012)  • #3
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)