• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

[off topic] but frustrating

 
Ranch Hand
Posts: 281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I love using JavaRanch as a study tool. However, one thing I'm finding frustrating, and I'm hoping some experienced ranch hands have a trick or two to help here...
The problem is the benefit of using the UBB code [C.ODE] (missspelled on purpose) is nice because you can see the code indented. The problem, though, is it really prints awfully small and I then have to use view on my browser to view the text larger. More importantly, though, I really enjoy cutting and pasting code that is displayed so I can test some of the things posted. The code between the UBB tags however must be stripped of line feeds, for when I paste into and editor or IDE it's all on one line. A real pain adding all the breaks and indents. It's actually easier to cut and paste code that isn't put between UBB Code tags since then you just have to add indents, however it's a real pain to look at without the indents in the regular forum posts. I also could have sworn that a while ago I was able to use html tags to present stuff differently. I'd actually make the font bigger usins CSS in a <PRE> tag and everything was nice.
Is this just the nature of the beast? or does anyone have some pointers on how to deal with some of these formatting issues on the ranch better. This is probably the wrong forum to ask such a question but being you guys all deal with this on a day to day basis in relation to your java studies you might have some advice.
Thanks,
Rick
<SPAN STYLE="color:green">Testing</SPAN>
 
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
God, yes, I agree with you. Trying to cut&past code to test apps is very very painful.
This thread is going to be moved but I had already brought this up in the right forum and everyone basically said use a more intelligent text editor to do pasting.
I didn't think that was a reasonable solution. I think they should fix it.
Rob
 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey guys!
u know what?? it's horrible for me. as i cant use any IDE and have to use Unix for the test codes...
so u can imagine what sort of work i've to do for doing similar stuff u guys do )
i cant use IDE as i use Computer in the University and there we cant install anything (even if we can its of no point as every time i cant expect access to the same computer). though we run windows on computers so...
i need to open Unix console to our Univ. Server in parallel to JavaRanch.com
but anyways,
i love Unix. so i don mind things. yeah but the code become too small to read for guys like me with bad vision (i use thick glasses).
regards
maulin.
 
Ranch Hand
Posts: 412
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I too agree with you Rick, in fact I was thinking of raising this point. You did it earlier!
 
Rick Reumann
Ranch Hand
Posts: 281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry to bring this topic to the top again, but it is important for those studying to be able to save time so after reading the comments about this in the Java Ranch forum, I'm posting what I thinks works best.
It's sort of funny because someone brought up using the Opera browser which is what I normally like to use. The only reason I haven't been using it on the ranch is because the little bubble tooltips that appear when you scroll over the icons like "reply to" don't show up in Opera. (Once you know where they are it's no big deal, though). Anyway, Opera seems to be the best solution. If you cut and paste what someone has posted between code tags it will keep the formatting perfectly (including the tabs, which word pad doesn't). You can then paste into whatever powerful editor you choose. ( Personal favorite is UltraEdit. For larger Java projects I use NetBeans )
You can download Opera for free at http://www.opera.com/
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, here's a code cut&paste work-around you can try.
In a post that you want to cut code from, click on the "quote" button at the top of the message header (looks like a pair of double quotes). This will take you to the Post A Reply screen, and copy the poster's text into a text field. In that field, the spacing is the same as the original text within a code block, so you can just copy that text from the text field. Then click back on your browser, since you don't really want to reply to the message.
It's a hassle, but it's better than having to insert a bunch of carriage returns and blank spaces in your source code file!!

Rob
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We used to be able to use font tags to increase the default size of the font inside the code tags but HTML has been turned off.
 
That is a really big piece of pie for such a tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic