File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to copy a *.java file to Ranch Posting

 
Charles Keller
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8791
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Charles Keller
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 618
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8791
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic