tags:

views:

2686

answers:

13

I used to often find myself coping a piece of code from a website/Word document etc only to discover that when doing Paste I would end up with the desired code plus some extra html tags/text, basically extra formatting information.

To get rid of that extra ballast I would paste the text to the Notepad and then copy it again and then paste to the desired destination.

Pretty recently I discovered a simple and free tool for Windows called PureText that allows me to cut the Notepad step. It basically adds an extra keyboard shortcut e.g WinKey + V that will do the Paste action without formatting; just pure text. I find it very handy.

I was wondering what approach would you use yourselves? Are they any better/easier to use tools around?

+7  A: 

From websites, using Firefox, I use the CopyPlainText extension.

cori
Very handy extension - if it could be bowled together with AutoCopy (and made to work in FF3!) it'd be great.
ConroyP
Thank you cori! I was always aggrivated by this, the extension works great!
Keith
Yeah, it's a pretty useful thing ;)
cori
+3  A: 

If you're pasting into Word you can use the Paste Special command.

hometoast
A: 

Look for a little clipboard icon that pops up at the end of the material you pasted. Click on this and choose "keep text only".

Steve Pitchers
A: 

I use OpenOffice.org and that offers a paste special option, where you can omit the formatting altogether. If you are not bound to MS Word, it's IMO worth a try and it's free :-)

André
If only MS Word has such a feature :)
hometoast
MS Word has it's feature called "Special Paste" well in french version is "Collage spécial"
Daok
@hometoast if only MS Word was free...
André
+1  A: 

Nice find with your PureText. I had build, before I change keyboard, a key that was running a macro that was copying-pasting-copying in notepad for this task! I'll give a try to your software since I do not have any macro key now :(

Daok
+7  A: 

Just for reference, under Mac OS X, you can SHIFT-ALT-CMD + V (to paste) without formatting or with the "current" format.

Martín Marconcini
quad-bucky-cokebottle...
Johan
A: 

Whenever these plugins and options aren't available I just use my good ol friend notepad. Paste content into notepad where it won't accept the extra formatting and then copy it right back out. Sort of hacky but oh well. It works!

Smallinov
A: 

I usually work with Notepad2, all the text I copy from the web are pasted there and then reused, that allows me to clean it (from format and make modifications).

You can download Notepad2 here

[ebarrera]
+1  A: 

I wrote an unpublished java app to monitor the clipboard, replacing items that offered text along with other richer formats, with items only offering the plain text format.

Stephen Denne
+1  A: 

I have Far.exe as the first item in the start menu.

Richtext in the clipboard ->

ctrl-escape,arrdown,enter,shift-f4,$,enter
shift-insert,ctrl-insert,alt-backspace,
f10,enter

-> plaintext in the clipboard

Pros: no mouse, just blind typing, ends exactly where i was before

Cons: ANSI encoding - international symbols are lost

Luckily, I do not have to do that too often :)

eugensk00
A: 

If you are using MS Word then try ALT+E, S, U, Enter (Uses the Paste Special)

Kishork
+2  A: 

I'm a big fan of Autohotkey. I defined a 'paste plain text' macro that works in any application. It runs when I press Ctrl+Shift+V. The nice thing about Autohotkey: you can code things to work they way you want them to work.

^+v::
    ; Convert any copied files, HTML, or other formatted text to plain text
    Clipboard = %Clipboard%

    ; Paste by pressing Ctrl+V
    SendInput, ^v
return
Dean Hill
+2  A: 

Just to summarise the available options:

Tools

Browser's Plugins

Other

  • under Mac OS X, you can SHIFT-ALT-CMD + V (to paste) without formatting or with the "current" format (by Martin)
  • Paste to Notepad, and then copy from Notepad and paste again

Please feel free to edit/add new items

kristof