How to post my code in this Forum under a good format?

can any one tell me how to post the java resource code in here? when i just copy and paste. the format of the output is not so good, i saw some one posted some code under a very good format in this Forum, how to do that?

If you want to post code that makes it easier on someone else to cut-n-paste, then put the code inside of the [ pre] and [ pre] tags (no blank space in between). If you want code that looks pretty (i.e., with syntax highlight, etc) but hard to cut-n-paste (at least for someone like me who uses Windows WordPad as a source code editor), put the code inside of the [ code] and [ code] tags (again no spaces in between). pre is an abbreviation for preformatted text!
;o)
V.V.

Similar Messages

  • How to post a picture in this forum?

    Dear all,
    There are a few times that I want to include a picture to show people what my question is. I want to know how to attach a picture in this forum
    thanks

    I got my assistant to figure it out.
    [url #" style="display: block; background-image:
    url('http://www.joe-ks.com/archives_aug2004/MonkeyBusi
    ness.jpg'); width: 499px; height: 490px] I work with that woman, I swear...

  • How can I write HTML code in this forums

    Sorry but I didn't know where to post this thread.....
    How can I write HTML code in this forums?

    Hello,
    Every piece of code in your post should be wrapped with the forum tags [ code] and [ /code], without the blanks.
    In case of the <a> tag, that is not enough. In this case, you have several options. The most elegant one is to use the entity name for the less-then sign - & lt; - without any spaces. Other options is to add a space between the less-then and the ‘a’ character (and make a note of it) or change the less-then character with a left bracket one.
    When posting code, you should always use the forum preview option, just to make sure the forum software “understood” your code correctly.
    Hope this helps,
    Arie.

  • How do I post edge material on this forum for download

    how do I post edge material on this forum for download.

    Dropbox, box.net etc...
    Then post the link.

  • How many members is there in this forum?

    Just curious...
    How many members is there in this forum?
    Thanks,
    Stefan

    How many members is there in this forum? Your user ID is 898414. But that probably doesn't
    mean the number of members is approaching a
    million... does it? Maybe it does. There are a lot of
    people who get a user ID and ask us to post the code
    for face recognition or something like that, then are
    never heard from again.and interestingly based on the id's the first member to have registered and who did post atleast one message posted his first message on Jul 21, 2005 2:16 AM
    while he registered on Registered:
    Jun 12, 1997 2:00 AM

  • How do i see how many points i have in this forum system?

    How do i see how many points i have in this forum?
    I will give points to best answer

    hi Debbie!
    Go to your public profile link, next to your status level you will see your total points.
    hmmmm. one quirk. if people don't actually have a status level yet, i don't see a points tally if i look at their public profiles. (not sure how it looks to a poster without a status level if they look at their own public profile.)
    if you've got a relatively small number of posts (and don't have a status level yet), it's possibly to do a manual count by checking through your My Posts (by opening each post in there and checking for any yellows or greenies.)
    love, b

  • How do you display code in a forum post

    Hey
    Just a quick question to ask how i display my code on these message boards if im having a problem with them?
    because i can see its not a simple copy and paste
    Thanks

    It's in fact very easy. You can post code and then surround it with code tags. The new code tags look like this:
    {code}
    x=y;
    z=w;
    {code}
    The old code tags look this this:
    [code]
    x=y;
    z=w;
    [[/i]code]
    They work the same. If you don't feel like typing in tags, there is a "code" button right there next to the bold, italics, underline buttons... Just select your code and press the code button.

  • How to quote while replying in this forum?

    Hi,
    i have some general question, while replying to the questions i haven't seen the quote option and wondering how you are quoting other replies. i have read the FAQs in this forum none of them specified how quote? Can some explain me how to quote?
    Thanks,

    >
    have some general question, while replying to the questions i haven't seen the quote option and wondering how you are quoting other replies. i have read the FAQs in this forum none of them specified how quote? Can some explain me how to quote?
    >
    You use \ on the line before and on the line after what you are quoting.Same for posting code: use on the line before and on the line after your posted code.
    There is a 'Preview' tab on the reply window so you can see what your reply looks like before you submit it.
    See the FAQ. There is a section there 'Are there any useful formatting options not shown on the sidebar?'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Posting script code in these forums

    OK, it looks like there are some (new) formatting issues with these forums when people try to post their scripts. I have been using a formatter script that converts the text on the clipboard to HTML and then wraps it in a pre tag, but there still seems to be some issues with certain characters. The following script has worked for me so far (although I don't post that much) - what other scripts or methods work for you?
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">-- script formatter
    property TempFile : "SF_TempFile" -- a temporary work file
    property TheWidth : "width: 720px; " -- a width attribute (deprecated in HTML 4.01)
    try
    set TheClipboard to (the clipboard) as string
    set MyOpenFile to open for access ("/tmp/" & TempFile & ".txt" as POSIX file) with write permission
    set eof of MyOpenFile to 0 -- empty the temp file
    write TheClipboard to MyOpenFile
    close access MyOpenFile
    -- convert to HTML - see man textutil
    do shell script "cd /tmp/; textutil -convert html -excludedelements '(html, head, title, body, p, span, font)' -encoding US-ASCII " & TempFile & ".txt"
    -- strip the first line (<?xml ?>) and add the <pre>...</pre> wrapper
    set TheText to rest of (paragraphs of (read ("/tmp/" & TempFile & ".html" as POSIX file))) as text
    set TheText to "<pre title=\"this text can be pasted into the Script Editor\" style=\"font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; " & TheWidth & "color: #000000; background-color: #E0E0E0; overflow: auto\">" & TheText & "</pre>"
    set the clipboard to TheText
    display dialog ((count TheText) as text) & " characters placed on the clipboard" with title "Script Formatted" buttons {"OK"} default button "OK" giving up after 4
    on error ErrorMessage number ErrorNumber
    display alert "Error " & (ErrorNumber as string) message ErrorMessage as warning buttons {"OK"} default button "OK"
    end try</pre>

    Hello red_menace,
    Indeed a pre-processing code like yours is always an option for us, but from my point of view, the correct solution is for the discussions' admins to disable this meddlesome formatting feature of the new fora software.
    This new feature affects not only new posts but also the existing messages in the fora, that means it has rendered quite a few useful messages totally useless. This is actually serious data loss caused by the thoughtless software. And for what?
    After all, these discussions' boards are not chat rooms where people might want some simple input methods for fancy text formattings, but technical support fora where people frequently post programming codes, computer outputs and so forth that have many reserved symbols and notation.
    I really wish they may fix this promptly.
    Best regards,
    Hiroto

  • How to view an attachment (in this forum)?

    http://forums.adobe.com/thread/419236 - the poster inserted a jpg attachment, but I cannot find how to view that attachment. Left-clicking, right-clicking, double-clicking... all does not do anything?
    Does anybody here know how to view an attachment in this new forum?
    P.S. just for fun I am also attaching a jpg file with this post.

    - this one works? I wonder why it doesn't work in the other post; it says QUEUED.

  • How to upload Apex-application in this forum

    i want a help. i develop a apex-applicatin . by use apex-4.2. now i want to upload my app: in this forum. how to i do it? plz give me suggest.

    Moderator Action:
    Your post has been moved from the Storage General Discussions forum space
    (where it definitely didn't belong - this isn't a storage hardware question),
    to the Application Express general discussion forum, for a guess at closer topic alignment.
    ... and to answer your question?
    You don't upload your application to a discussion forum.
    Perhaps you might get a clearer picture of what Apex is by reading previous forum threads in this space - perhaps read the last two years' worth of such posts.

  • Posting Headstart questions on this forum

    Dear all,
    The Headstart Oracle Designer forum was originally intended as a platform for discussions on the use of the Headstart Template Package and Utilities in conjuction with Oracle Designer. For this reason, the Oracle Headstart team monitors this forum and tries to answer questions and solve problems for our customers that are using Headstart.
    As it turns out, the forum is now used for a much broader number of topics, including database and SQLnet, Web Server Generator, Forms 6i, non-Headstart related Designer issues, and many more. This is not a problem; appearently for some topics a more appropriate forum is not available and as long as people 'find eachother' on this forum it is serving its purpose.
    An unfortunate side effect is that for the Headstart team it is becoming increasingly difficult to locate the 'real Headstart' topics in the list. Therefore we would like to ask anyone that wants to post a Headstart related topic to make this clear in the Subject. Ideally, this would be done by starting the subject with 'HST' when it involves the Template Package, or 'HSU' when it involved the Utilities. If you could then add the Headstart version number to it, it would really make our day! So for instance:
    "HST6i: Problem creating MSEL lov"
    "HSU212: Error in "Create Find Window" utility
    If you do not know how to classify your topic in this manner, at least make sure to put the word "Headstart" in the Subject.
    Thank you!
    Pete

    Hello all,
    I would like to ask if someone in this list already experienced the folllowing issue.
    After an upgrade of Developer Run time 6.0 (Patch 7), some ( not all !! ) forms generated with Designer 6.0 don't show the toolbar icons.
    Config : Win 2000 SP2 - DB 8.1.7 - Des 2K 6.0 - HSD 2.1
    TIA
    RCE

  • Pasting Code into this forum

    Hi, I'm a noob. How do I paste code into a discussion, and have it actually look like code.
    Thanks!

    The {code} block doesn't wrap long lines, but it does add a scroll bar if the line gets too long (really long).
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 480px;
    color: #000000;
    background-color: #B5FF6C;
    overflow: auto;">
    I use an AppleScript that's been tweaked over time to add various formatting</pre>
    - it uses an HTML <pre> block. The script has several options, including the color and size of the block (I like to keep messages relatively small) - it is available here.
    rccharles also posted a script in the User Tips Library with similar ideas (and a message reply link formatter I borrowed).

  • Suggest me to format code in this forum

    please tell me how to put my code in proper format..
    i tried
    my codebut not work

    just sample to format my code..please ignore
    SQL> ed
    Wrote file afiedt.buf
    1  declare
    2  t t1%rowtype;
    3  begin
    4  t.id:=1;
    5  t.fn:='john';
    6  t.sn:='sn';
    7  insert into t1 values t;
    8  commit;
    9* end;
    You're using PRE tags which works ok and allows you to include other formatting such as bold and italics etc. but it tends to remove blank lines. You can also use the CODE tags which will leave in the blank lines but you can't use other formatting within it.
    This has Pre tags and blank lines and as you can see
    it tends to remove blank lines
      from inside the codeWhereas...
    This has Code tags which
    will leave in the blank lines
    but won't allow other formatting

  • How tool was used to build this Forum ?

    Dear Oracle OTN Team
    Cna anybody tell me what tool was used to build this Forum ?
    Is it a out-of-the-box tool or itas build by Oracle team for specific use in OTN ?
    If this forum program is available for all purpose use , where can I get it ?
    I really like to install such forum progrm inside an Oracle Portal application that I'm developing . Is it possible ?
    I'd appreciate a lot your reply and colaboration on this matter .
    Thanks in advance .
    Best regards !
    Ricardo

    You have apparently purchased a lost or stolen iPhone. The owner's telephone number was given. You should contact the rightful owner about returning it. You should contact the person from whom you purchased it and get your money back. Report all to the local police.

Maybe you are looking for

  • When I connect to the hotel wireless, it takes 2 or 3 minutes to be redirected to the login page

    Hi all, I have a problem with my Firefox 4 beta: when I connect to the hotel wireless, and I start the browser, I should be automatically redirected to the hotel's main login page. In FF4b I get 2 error messages (attached) and I am not redirected imm

  • Berkeley DB and Tuxedo

    Dear all, I am trying to set up Berkeley DB from Sleepycat Software (an open source database implementation) as a backend database for Tuxedo with X/Open transaction support on a HP-UX 11 System. According to the documentation, this should work. I ha

  • Save and close InDesign file CS4 JS

    Hi, I need to save and close InDesign file after export pdf was done. Once export is complete the script opens the pdf file and the script gets interrupted. Here what I was trying and I am not sure if it even in the right direction: #targetengine "se

  • Sender port in an Outbound IDoc

    Hi Can someone please mention where is configuration for IDoc sendor port. We generally give Receiver port information in outbound parameters in partner profile(WE20). But there is no place where we give the Sender port information. When an outbound

  • Outlook Express address book to Entourage

    Changing from a PC to a MacBook Pro - Is there any way I can export my PC Outlook Express address book to my MacBook Pro? I am using Entourage and would like to have my address book exported rather than having to type everything. Is this possible or