-
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
-
-
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.
-
AntiOnline does currently not support syntax highlighting.
-
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($result, MYSQL_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 ;) )
-
-
July: Here are theSite Suggestions