paste

Syntax highlighting when pasting into emails

Im in the situation that I often send small codesnippets and xml-snippets to coworkers and partners via my outlook. Has anyone got a good idea or tool that I can use to have my pastes syntaxhighlighted before I paste them into an email. I was thinking of an intermediate paste to "$fancytool" and then I would have something to copy that...

paste on site, syntax highlighting.

I am getting a web host and i have projects with teammats. I thought it be a nice idea to have my own paste site that has no expiry date on paste (i know http://pastie.org/ exist) and other things. i wanted to know. Whats a simple highlight lib i can use on code? i would be only using C/C++. ...

How to paste CSV data to Windows Clipboard with C#

What I'm trying to accomplish My app generates some tabular data I want the user to be able to launch Excel and click "paste" to place the data as cells in Excel Windows accepts a format called "CommaSeparatedValue" that is used with it's APIs so this seems possible Putting raw text on the clipboard works, but trying to use this format...

Why is pasting a long one-liner very slow in Vim's insert mode?

My Macbook was stuck yesterday, when I tried to paste 1200 lines of 80 characters to Vim. It was much faster to download the file, and not to paste the text. I have thought that this problem might be the reason, why internet operators allow slower uploading than downloading. --edit The text is: http://dpaste.com/115362/ ...

Map keyboard for common paste operation

I want to program a key on my keyboard to paste certain static text when pressed. For instance, I'd like to program the F12 key so, when pressed, it pastes my email address every time. Is there an easy way to do this? ...

jQuery catch paste input

I'm looking for a way to sanitize input that I paste into the browser, is this possible to do with jQuery? I've managed to come up with this so far: $(this).live(pasteEventName, function(e) { // this is where i would like to sanitize my input return false; } Unfortunately my development has come to a screeching hold because of this...

Paste from SQL to Excel... Excel wants to think for me

Group I am pasting data from SQL to Excel and it appears that Excel is trying to read my mind by converting some of my numbers to dates. I.e. one number is 2-2131 and when I paste it to excel it shows Feb-31 even 2-3291 wnats to be Feb-61 STOP IT EXCEL! This is driving me crazy and I can't seem to find an easy way around this. I trie...

"display:none" content copied to clipboard, visible when pasted

Hi all, I'm having a problem with non-displayed HTML elements being copied to the clipboard, and then displayed when the content is pasted into MS Word, Outlook, etc. For example: <p>Hello</p> <p style="display: none;">I'm Hidden</p> <p>World</p> If I view that HTML in a browser, copy the text to my clipboard, then paste into Outloo...

How can I use paste and awk inside Perl?

I have the following code that uses 'paste' and AWK script inside Perl. use strict; use Data::Dumper; use Carp; use File::Basename; my @files = glob("result/*-*.txt"); my $tocheck = $ARGV[0] || "M"; foreach my $file ( @files ) { my $base = basename($file,".txt"); my @res = `paste <\(awk '\$4 == "M...

Paste from excel to textbox

Hi, I want to copy some data from an excel file to a textbox in a win app. The copy paste works ok if the cells are continuos, but if I select (with CTRL) the first and the third cell, when I paste it to the textbox, it will paste also the 2nd cell. What is the best way to get just the cells i'm interested in? Thank you ...

Pasting diff output into Microsoft Outlook with syntax highlighting

How can I copy diff output (diff old-version.cpp new-version.cpp) into an Outlook email so I can send it to other people with syntax highlighting? I'd either like to pipe diff output to a program that will copy it to the clipboard with formatting (p4 diff file.cpp | rtfpatch) or have a plugin for Outlook that lets me select some text, c...

Implementing copy, cut and paste

I want to implement copy, cut and paste in my drawing program (copy part of an image that is selected) I don't know how to start Any Ideas? ...

How to Paste a pre-formated text in the cursor position in VS2008?

Hello There! I'm creating an application to help with e-mail replying, so I got a few sample mensages I want to Paste into the e-mail text page, starting from the cursor position. Imagine, I got this app with Button1,2,3,4 etc, and associated to each button is a pre-formated text, so when I hit Button1 it will Paste the text, starting ...

vi search copy paste search copy

Hi, I was just wondering if anyone could help out with how to do the following using vi. I have a text file and it might contain something like start of text file: --something1.something2-- --anotherThing1.something2-- end of text file: If I want to take this line and convert it by way of searching for anything matching the first oc...

Pylons: address already in use when trying to serve

I'm running pylons and I did this: paster server development.ini It's running on :5000 But when I try to run the command again: paster serve development.ini I get this message: socket.error: [Errno 98] Address already in use Any ideas? ...

Adding an 'paste screenshot' option to Mantis bugtracker.

We're using the Mantis bugtracker (version 1.1.8), which is based on PHP. To ease the workflow of adding bugs we'd like to add an option to paste screenshots from the clipboard directly into the 'new bug form'. Screenshots make bugreports much more valuable for developers, so I'd like to make adding them as easy as possible. Preferably ...

How do I disable html copying from a webpage, so that only text gets copied?

Is it possible to have JUST TEXT copied when a user copies a url from a webpage to an HTML-enabled application such as Word of Outlook? Perhaps there is something I can do in Javascript? I know how to disable Copy + Paste completely, but I really need to disable HTML copying only. Thank you very much. ...

vi: paste at top of file

One thing that's bothered me with vi is that paste (p) inserts lines after the line I'm on, which makes it impossible for me to insert things at the top of a file. For instance, say I'm going through and adding a UTF-8 declaration to the top of a few files: # -*- coding: utf-8 -*- yy and it's yanked. Good. I switch over to another ...

Yank lines from one file in vi ( not vim ) to another?

I'm used to VIM and usually I split screen with and open another file, yank the text into the second one. However I'm dealing with a legacy server which only has vi, how could I either open multiple files with it if it doesn't support split views or copy text from one file to another ( 2 separate vim instances I guess ). I don't think ...

Copy and paste into a DataGridView cell (C#)

I need to be able to copy a name or names from one application (using the normal copy commands) and then be able to double click the text cell in a DataGridView to paste the data into the grid cell. Any ideas on how to accomplish this? I am attempting to minimize keyboard use for this functionality. ...