• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to copy a *.java file to Ranch Posting

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic