Go Back   HawaiiThreads.com > Hale Heahea > Front Desk
FAQ Members List Social Groups Calendar Search Search Latest Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old July 12th, 2007, 06:55 PM
helen's Avatar
helen helen is offline
Ali`i
 
Join Date: Apr 2004
Location: Honolulu, Hawaii
Posts: 9,879
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.
Reply With Quote
  #2  
Old July 12th, 2007, 07:10 PM
helen's Avatar
helen helen is offline
Ali`i
 
Join Date: Apr 2004
Location: Honolulu, Hawaii
Posts: 9,879
Default Re: Test posting - code tag

Just testing to see if I can post to the site.
Reply With Quote
  #3  
Old July 12th, 2007, 07:14 PM
helen's Avatar
helen helen is offline
Ali`i
 
Join Date: Apr 2004
Location: Honolulu, Hawaii
Posts: 9,879
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.
Reply With Quote
  #4  
Old July 12th, 2007, 07:17 PM
helen's Avatar
helen helen is offline
Ali`i
 
Join Date: Apr 2004
Location: Honolulu, Hawaii
Posts: 9,879
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
Reply With Quote
  #5  
Old July 12th, 2007, 07:24 PM
helen's Avatar
helen helen is offline
Ali`i
 
Join Date: Apr 2004
Location: Honolulu, Hawaii
Posts: 9,879
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)
Reply With Quote
  #6  
Old July 12th, 2007, 07:59 PM
helen's Avatar
helen helen is offline
Ali`i
 
Join Date: Apr 2004
Location: Honolulu, Hawaii
Posts: 9,879
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 
Reply With Quote
  #7  
Old July 13th, 2007, 02:00 AM
helen's Avatar
helen helen is offline
Ali`i
 
Join Date: Apr 2004
Location: Honolulu, Hawaii
Posts: 9,879
Default Re: Test posting - code tag

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

Bookmarks

Tags
test, vbulletin

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -5. The time now is 11:07 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.

  Partner Sites: Hawaii Blog Hawaii News Hawaii Grinds Hawaii Social Media  
    Blogging the Aloha State. The Hawaii Star. Hawaii Food Blog. The story of Aloha 2.0.