copy-paste

How to copy text from Emacs to another application on linux

When I yank text in Emacs 22.1.1 (in its own window on X, in KDE, on Kubuntu), I can't paste it anywhere else. I'm reduced to opening kate to copy the text with ^C. Is there a better way? ...

How do you customize the copy/paste behavior in Visual Studio 2008?

How do you customize the Copy/Paste behavior in Visual Studio 2008? For example I create a new <div id="MyDiv"></div> and then copy and paste it in the same file. VisualStudio pastes <div id="Div1"></div> instead of the original text I copied. It is even more frustrating when I'm trying to copy a group of related div's that I would li...

How can I read raw (CF_HTML) clipboard data in a webpage or C#?

If I drag and drop a selection of a webpage from Firefox to HTML-Kit, HTML-Kit asks me whether I want to paste as text or HTML. If I select "text," I get this: Version:0.9 StartHTML:00000147 EndHTML:00000516 StartFragment:00000181 EndFragment:00000480 SourceURL:http://en.wikipedia.org/wiki/Herodotus <html><body> <!--StartFragment-->Addi...

Ruby. How can I copy and paste in irb on Windows?

How can I copy and paste in irb (Interactive Ruby Shell) on Windows? ...

Textarea overflow-x when a user copy-pastes into it?

Hi, I have a textarea with overflow-x: auto; attributed to it. It works great when a user is typing text into the box by hand. When a user copy pastes a line from a file, however, that is bigger than my textarea, the overflow-x property does not work, instead the textarea wordwraps the long line. Is there a way (maybe javascript) to ma...

PHP 4 and 5, Ctrl-C, system(), and child processes.

I have a PHP script that uses the system() call to execute other (potentially long-running) programs (for interest: NCBI BLAST, phrap, primer3 and other programs for doing DNA sequence analysis and assembly). I'm running under Windows XP, using the CLI version of PHP from a command prompt, or as a service. (In either case I communicate ...

How do I trap ctrl-c in a C# console app

I would like to be able to trap ctrl-c in a C# console application so that I can carry out some cleanups before exiting. What is the best way of doing this? ...

How often do you make errors by copying and pasting code?

When you copy a bulk of code from one place to another, do you always fix all that needs to be fixed in the pasted code, or do you sometimes discover bugs that were caused by not fixing that code thoroughly? This rarely happens to me, but when it does it's quite frustrating. I wish there were a tool that would somehow mark pasted code, ...

Mac Console paste generating trash text

On mac os console, when doing paste of large quantities of text (for example an sql database) I get loads of trash and corrupted text. But when doing the same under windows or into a text box, this doesn't happen and the text comes out ok. Is this a buffer problem or something like it? If so anyone know any flag to make its size bigger?...

Can you use NSPasteBoard to paste into another application?

Hi, I found out how to get the content of the NSPasteboard, and to copy it into my active application. I haven't found a way to paste it into another application, just how to paste it into my current application. If you're wondering why I would want to do this, I'm researching if there is a way to improve Jumpcut open source applicatio...

How do I copy an image and text to the clipboard as one object?

I'm trying to copy both an image from a file and text from a file to the clipboard. My intention is to then open a word document or an outlook email and paste both the text and the image in one standard paste command (CTRL-V for example). I can do both separately easily enough, but doing them both in one operation doesn't seem to work. ...

Stuck on GenerateConsoleCtrlEvent in C# with console apps

I'm having the hardest time trying to get this to work, hoping one of you has done this before. I have a C# console app that is running a child process which inherits its console. I want a ctrl-c caught by the outer app to be passed along to the inner app so that it can have a chance to shut down nicely. I have some very simple code. I...

Paste MS Excel data to SQL Server

I have a bunch of rows in Excel that I want to paste into a new table in MS SQL. Is there a simple way ? ...

Fastest way to move files on a Windows System

I want to move about 800gb of data from an NTFS storage device to a FAT32 device (both are external hard drives), on a Windows System. What is the best way to achieve this? Simply using cut-paste? Using the command prompt ? (move) Writing a batch file to copy a small chunks of data on a given interval ? Use some specific application t...

Copy-pasting image into JavaScript rich-text editor

Hi, I'm looking for a rich-text editor control that has some way of allowing users to copy-paste images into it, a la Google Mail. I guess I'm hoping there's some way to communicate the binary contents of an image on the clipboard to the browser (and perhaps store these contents in a hidden element somewhere that I can access). If you c...

Are there any new solutions for copying multiple groups of text to clipboard via JavaScript / Flash, since Flash 10?

Since Flash 10 was introduced, many of the popular 'copy to clipboard' scripts out there have stopped working due to new security restrictions. There is a Flash-only solution here: http://cfruss.blogspot.com/2009/01/copy-to-clipboard-swf-button-cross.html ...though I'm looking for the ability to trigger the copy function via JS, rathe...

How do I allow Pasting of data into a web page?

I have a neat little javascript data grid and I want people to be able to paste data into it. I know there are security issues attached to accessing the clipboard, but I am wondering if there is a way to do it. It is by far the most intuitive approach for the end user. Is there some cunning hack I could do with, say, a text input? ...

How to retrieve text from the clipboard in partial trust

We have a RichTextBox WPF control and since we control the layout, we simply cannot allow any rich content... Therefor, we need to strip all data except text from the clipboard. For example, if someone is trying to copy/paste lets say text from a table directly from Microsoft Word, the RichTextBox also takes into account that this text...

Smart indenting in vim (normally great) is a disaster when pasting in a chunk of code.

I guess other editors are smart enough to turn that stuff off for pasting but when using vim in a terminal it can't distinguish between pasting and actual typing. What kinds of solutions or workarounds do you have for this? Added: there's also a setting that makes comments automatically continue on the next line. The indenting at leas...

Can't paste Java source file into IntelliJ IDEA

I recently moved to IntelliJ IDEA. And I need to add several files to one of the packages in my project. The problem is I couldn't paste these files into that package. I also tried pasting the files in Explorer and pressing F5 in IntelliJ IDEA, but it did not work. How to copy the files into IntelliJ except manually creating these sou...