Site Suggestion
Results 1 to 7 of 7

Thread: Site Suggestion

  1. #1
    Senior Member
    Join Date
    Jun 2002
    Posts
    102

    Site Suggestion

    I'm not sure if there is a site suggestion forum. But I thought this might be a proper place.
    Is there any syntax high lighting for code we post up? I know some message board systems do have it so when posting up programming code it doesn't look like a train wreck. If not maybe it might be a cool add on to the site. Just somthing I thought I might bring to attention. Oh yeah before I go get drunk.Could the avatar size go up. 64 X 64 pixels is soooo small. I was having such a hard time with making it the right size. Welp Cheers
    Good Grief

  2. #2
    Webius Designerous Indiginous
    Join Date
    Mar 2002
    Location
    South Florida
    Posts
    1,123
    Code:
    like this
    Site Suggestions

  3. #3
    Senior Member
    Join Date
    Jun 2002
    Posts
    102
    Code:
    //Duh.
    
    #include <iostream.h>
    
     void main()
     {
    	 cout<<"My Bad"<<endl;
    	 cout<<"But where is the color?"<<endl;
    	 cout<<"Quote Homer Simpson Doh!"<<endl;
    	 cout<<endl;
    
     }
    Thanks xmadness for showin a newbie.
    Good Grief

  4. #4
    Senior Member
    Join Date
    Mar 2002
    Posts
    502
    AntiOnline does currently not support syntax highlighting.
    Bleh.

  5. #5
    Hi mom!
    Join Date
    Aug 2001
    Posts
    1,103
    Actually, it does, but just for php code ...

    PHP Code:
    <?php
        
    /* Connecting, selecting database */
        
    $link mysql_connect("mysql_host""mysql_user""mysql_password")
            or die(
    "Could not connect");
        print 
    "Connected successfully";
        
    mysql_select_db("my_database") or die("Could not select database");

        
    /* Performing SQL query */
        
    $query "SELECT * FROM my_table";
        
    $result mysql_query($query) or die("Query failed");

        
    /* Printing results in HTML */
        
    print "<table>\n";
        while (
    $line mysql_fetch_array($resultMYSQL_ASSOC)) {
            print 
    "\t<tr>\n";
            foreach (
    $line as $col_value) {
                print 
    "\t\t<td>$col_value</td>\n";
            }
            print 
    "\t</tr>\n";
        }
        print 
    "</table>\n";

        
    /* Free resultset */
        
    mysql_free_result($result);

        
    /* Closing connection */
        
    mysql_close($link);
    ?>
    (and as an extra bonus, it'll make you go blind ;) )
    I wish to express my gratitude to the people of Italy. Thank you for inventing pizza.

  6. #6
    AO Curmudgeon rcgreen's Avatar
    Join Date
    Nov 2001
    Posts
    2,716
    I came in to the world with nothing. I still have most of it.

  7. #7
    July: Here are theSite Suggestions
    .::nataS is WaTchiNg::.

Posting Permissions

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