suchuwato Posted October 12, 2004 Posted October 12, 2004 when you see code in a book, sections are indented. do you need to do that when you type in in notepad (god i'm an idiot ) Share this post Link to post Share on other sites More sharing options...
General Posted October 12, 2004 Posted October 12, 2004 well i dont know what ur talking about but i will go ahead and agree that your an idiot Share this post Link to post Share on other sites More sharing options...
Leldorion Posted October 12, 2004 Posted October 12, 2004 Wouldn't that depend on the code? As in what TYPE of code you're talking about?And yes. Yes, you are. Share this post Link to post Share on other sites More sharing options...
suchuwato Posted October 12, 2004 Posted October 12, 2004 (edited) gah. type (idiot, again) it's php/mysql. edit: ok, so i upload this to my host to see if php works. it is enabled on my host but it doesn't work <html> <head> <title> php test page </title> </head> <body> <p>this is normal html <p> <?php echo "this is a php line"; phpinfo(); ?> </body> </html> Edited October 12, 2004 by lego Share this post Link to post Share on other sites More sharing options...
Nerm Posted October 12, 2004 Posted October 12, 2004 you don't have to indent it and make it all pretty like the examples you see in a book, but if you do it does make your code more neat and organized. BTW yes you are an idiot lol j/k. Share this post Link to post Share on other sites More sharing options...
suchuwato Posted October 12, 2004 Posted October 12, 2004 yeah, thanks - i got that now Share this post Link to post Share on other sites More sharing options...
lt_navvara Posted October 12, 2004 Posted October 12, 2004 -ladies and gentlemen of the jury have u reached a verdict? -yes we have your honour, we find the defended, lego, to be an idiot. -by the power vested in me by the state of tetelia i hereby sentence u to never master the works of html programing and to be hereafter known as an idiot. take him away! Share this post Link to post Share on other sites More sharing options...
suchuwato Posted October 12, 2004 Posted October 12, 2004 (hangs his head in shame) Share this post Link to post Share on other sites More sharing options...
markiemrboo Posted October 13, 2004 Posted October 13, 2004 You don't have to indent it, it just makes things more readable. What do you mean it doesn't work? If you view the source on the webpage are the echo blah; and phpinfo(); things still there? Share this post Link to post Share on other sites More sharing options...
cchalogamer Posted October 13, 2004 Posted October 13, 2004 (edited) Ok as far as i know you dont need to indent in any type of programming for it to work. BUT it makes it 100% easier to figure out what goes with what. Now back to programming my java dude lol. (its a face with 3 hair options, 3 eye options, and 3 mouth options that we have to draw with characters after asking what kida of guy you want. kinda like this: ||||||||||||||||||||| | | | | | . . | _| |_ |_ _| | ______ | | | Yeah it looks kinda bad here but with good old comand prompt text it looks soo much better Edit: ok nothing liek that it wont let me space like that lol Ok so were both idiots.... Edited October 13, 2004 by cchalogamer Share this post Link to post Share on other sites More sharing options...
suchuwato Posted October 13, 2004 Posted October 13, 2004 ok <_< i have decided to use tabs Share this post Link to post Share on other sites More sharing options...
Leldorion Posted October 15, 2004 Posted October 15, 2004 Actually, I believe python does require indenting to function properly and there may be others...just fair warning. And it's always good to indent to help others find their way through your code...and even yourself sometimes <_< Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now