File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ranch Office and the fly likes problem in copying Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "problem in copying" Watch "problem in copying" New topic
Author

problem in copying

deepak kushwaha
Ranch Hand

Joined: Jul 17, 2010
Posts: 33
whenever i copy a source code from javaranch to test it on my computer every line gets a number. so i have to delete all those no. going in in each line. its really annoying sometime because sometime they are very big. i know how to delete those no. on one go in microsoft word but i cant install that since i dont have it. also i dont want so install it since i am low on disk space. can someone please tell me how select only those no. to delete.i mean they look something like that

1. class join{
2. public static void main(String[] args){
3. new join().go();
4. }

i cant go in each line to delete them
subhash kumar
Ranch Hand

Joined: Jul 14, 2010
Posts: 63
search the link (view plain) on the code.
click on the "view plain" link and a pop up will open that will display only the code not the line numbers.

you will find the links like => "view plain" "copy to clipboard" "print" "?"


Subhash Kumar
Attitude is everything
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19692
    
  20

If proper code blocks are used I don't get that problem. I can simply select everything, copy it and it won't include any line numbers.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

If I don't "View Plain" I get # instead of the line numbers: this behavior is browser-dependent (FF = #, Chrome = nothing).

Chrome:FF
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Moving to Ranch Office, btw.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19692
    
  20

It's a browser issue. IE6, IE8, Opera, Chrome and Safari all omit the line numbers. Firefox shows either the line numbers (if all text is selected) or # (if only part is selected).
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24184
    
  34

Rob Prime wrote:It's a browser issue. IE6, IE8, Opera, Chrome and Safari all omit the line numbers. Firefox shows either the line numbers (if all text is selected) or # (if only part is selected).


Interesting, I didn't know that some browsers don't select the numbers/pound signs. I'll have to have a look at the Javascript and see if I can figure out why Firefox does.


[Jess in Action][AskingGoodQuestions]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Firefox does it when you copy items in a list

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in copying