File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes How to copy a *.java file to Ranch Posting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to copy a *.java file to Ranch Posting" Watch "How to copy a *.java file to Ranch Posting" New topic
Author

How to copy a *.java file to Ranch Posting

Charles Keller
Greenhorn

Joined: Jan 31, 2004
Posts: 24
I would like to copy one of my *.java program file to "a new posting"
in Java Ranch, but I don't know how to do it.
Shall I first transfer the file to a WORD *.txt file and then transfer it
to the posting section of Java Ranch, but on Microsoft Internet Explorer there is no "copy and paste" on the top menu bar (it is greyed out).
Thank you for your answer.
Charles Keller.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Do you just mean to include code in a posting like this one? Be sure to put the code tags around the code - use the code button below the edit window once to see what the tags look like, then you can type them about as quickly in the future. I copy & paste all the time with keyboard shortcuts Ctrl-C and Ctrl-V in Windows. The Edit-Paste menu selection on Internet Explorer seems to work fine, too. If you're having trouble with all that, post some more precise keystrokes or whatever is giving you trouble.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Charles Keller
Greenhorn

Joined: Jan 31, 2004
Posts: 24
Hi Stan,
Thank you for your reply. Yes, that is what I meant: Copy and paste a small java source program in the posting section of Java Ranch.
So If I understand it correctly, in windows I should do the following:
- Block text of code in source (IDE) or (WORD)
- press CTRL-C
- go to target (Ranch posting frame, which is already started)
- press CTRL-V
And then, I should press "code" at the beginning of the program and "code" again at the end: that's it?
May I send you a small java source program to try it out?
Thank you for your help.
Charles.
Stephen Huey
Ranch Hand

Joined: Jul 15, 2003
Posts: 618
Are you in Windows? If so, just highlight your code, right-click and go to Copy, and then after clicking on New Post you should right-click in the white textbox and choose Paste.
You're done.
Unless you want it formatted a bit more nicely. Then, type after it to enclose it. If you choose to click the CODE button down below when adding a post, then it will just stick those CODE tags in there automatically, and you'll need to paste your code in between them.
Charles Keller
Greenhorn

Joined: Jan 31, 2004
Posts: 24
Mr. Huey,
Thank you for your answer. I will try what you have suggested re. copying code program into a posting in Java-Ranch.
Keep well: Charles .
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Sounds like you are on track. The Code button inserts two tags for start and end code that I probably can't type here cause they'll be interpreted by the server. You put your code between them. Once you've seen them, you'll understand how to type them if it seems faster than hitting the button.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to copy a *.java file to Ranch Posting