Image Generators for Web Developers Vista SP1 Download Coming Free Antivirus Vista Terms Defined Manage iPod
Collapsed Today Collapsed CyberNotes
Collapsed Yesterday

Helpful Tip: Paste Multiple Lines in Input Boxes

November 29th, 2007
9 Comments Written by Ryan

Double Line Pasting


Have you ever been in Firefox and wanted to paste multiple lines of text into a single-line text field? You know, like in the example above where there is an address which has been placed on two different lines, but if you paste that into the Google Maps search field it will cutoff anything on the second line.

Although you can’t do this in Firefox by default, it is actually possible with a quick little tweak:

  1. In the Firefox Address Bar type about:config and press Enter.
  2. Find the option that is named editor.singleLine.pasteNewlines and double-click on it.
  3. Change the value to 2.

Double Line Pasting Config

Now you can copy and paste, or drag and drop multiple lines of text into a single-line input field! How cool is that?

Other browsers besides Firefox handle this in different ways. Internet Explorer will  not allow multi-line pasting into input boxes, but Opera on the other hand does. In Opera it is extremely handy because it allows for fast right-click multi-line address lookups.

[via Lifehacker]
Thanks for the tip Jason!

RSS Icon This is just one of the many helpful tips that we have done. You can find more of them by visiting our Helpful Tips category, or by subscribing to our Helpful Tips feed. We also have a full feed available if you want to receive all of our articles in your reader!

Tags: Firefox, Helpful Tips, Software, , , , ,

Learn Firefox
Previous ArticleNext Article
 

Related Posts:


9 Unread Comment Tracking CyberMark This Article
RSS Icon
9

  1. Avatar

    Oh man, you have no idea how many times I have wished for a way to do this. Sometimes it’s the stupidest things that make you happy. lol Thanks a ton for the tip!

  2. Avatar

    Oh this is so cool! I can totally relate to Topshelf and have missed this too a lot of times. Great tip buddy!

  3. Avatar

    I remember noticing this in Opera recently. No surprise they get it right by default.

  4. Avatar

    So why is this not enabled by default? Is it buggy?

  5. Avatar

    I’ve always wanted this to work too, I wonder why it’s not the default setting?

  6. Avatar

    Glad you guys found it helpful. As for why it is not default I’m not sure. Maybe it is because the data has to be manipulated (a.k.a. new lines removed/replaced) in order for it to work, which might not always be a good thing? As it turns out, however, there are multiple values for that option:
    0 (default in Linux): Paste content intact (include newlines)
    1 (default everywhere else): Paste the content only up to (but not including) the first newline
    2: Replace each newline with a space
    3: Remove all newlines from content
    4: Substitute commas for newlines in text box

:mrgreen: :| :twisted: :arrow: 8O :) :? 8) :evil: :D :idea: :oops: :P :roll: ;) :cry: :o :lol: :x :( :!: :?:

Note: All links posted in comments will automatically be hyperlinked.

↓ Expand Text Area  or  Decrease Text Area ↑

 Find out how to track new comments!


 

  1. Trucchi per Firefox: come copiare più righe di testo nelle caselle di testo ad una sola linea | Generazione Internet
  2. Trucchi per Firefox: copiare + righe di testo nelle caselle di testo ad una sola linea « MARCOBG’S BLOG
  3. Paste multiple lines into a single-line text field in firefox « Random Nothings