Results 1 to 7 of 7

Thread: Test posting - code tag

  1. #1
    Join Date
    Apr 2004
    Location
    Honolulu, Hawaii
    Posts
    10,144

    Default Test posting - code tag

    This is a test of using the code tag under vBulletin. The icon is the number sign in the standard editor, clicking on it produces the code tags
    Code:
    Use of the code tag is meant to post program code.
    Like BASIC or C or whatever programming language you are using that needs to be displayed.
    Text with in the code tag do not get word wrapped.
    You need to enter a newline character (like the Enter key) to go to the next line.

  2. #2
    Join Date
    Apr 2004
    Location
    Honolulu, Hawaii
    Posts
    10,144

    Default Re: Test posting - code tag

    Just testing to see if I can post to the site.

  3. #3
    Join Date
    Apr 2004
    Location
    Honolulu, Hawaii
    Posts
    10,144

    Default Re: Test posting - code tag

    Interesting I was trying to post some C code inside a code tag and I got the following message:

    Service Temporarily Unavailable
    The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

    I did this when trying to post a reply to this thread not making a new thread.

  4. #4
    Join Date
    Apr 2004
    Location
    Honolulu, Hawaii
    Posts
    10,144

    Default Re: Test posting - code tag

    Another test of the code tag

    Code:
    line 1
    line 2
    line 3
    line 4
    line 5
    line 6
    line 7
    line 8
    line 9
    line 10
    line 11
    line 12
    line 13
    line 14
    line 15
    line 16
    line 17
    line 18
    line 19
    line 20
    line 21
    line 22
    line 23
    line 24
    line 25
    line 26
    line 27
    line 28
    line 29
    line 30
    line 31
    line 32
    line 33
    line 34
    line 35
    line 36
    line 37
    line 38
    line 39
    line 40

  5. #5
    Join Date
    Apr 2004
    Location
    Honolulu, Hawaii
    Posts
    10,144

    Post Re: Test posting - code tag

    Had to remove the semicolons (and some other stuff) from the C code below to make it be able to be stored as a response or even a preview.


    Code:
    int i
    int j
    int adc
    fin = fopen("launch1a.txt","r")
    i = 0
    fscanf(fin,"%d",&adc)
    for (j=1; j<=20; j++) 
    printf("%d - %d\n",i,adc)
    i++
    fscanf(fin,"%d",&adc)

  6. #6
    Join Date
    Apr 2004
    Location
    Honolulu, Hawaii
    Posts
    10,144

    Default Re: Test posting - code tag

    PHP Code:
    This is a test of PHP tag.
    line 2
    line 3
     
    line 5 
    (since line 4 is blank)
    end of test 

  7. #7
    Join Date
    Apr 2004
    Location
    Honolulu, Hawaii
    Posts
    10,144

    Default Re: Test posting - code tag

    Code:
    main()
    {
      printf("howzit world\n");
    }

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •