View Full Version : What is the code....
Massiel
07-09-2002, 11:15 AM
that I need to include when I am adding a hack and say it says replace this with this and I don't want to delete the original, I want to leave it there and just put the other underneath... so what do I do to block the original without removing it? Or say I want to add some info on the hack? Some hacks say this is the something hack done by such and such but some don't say anything which makes it harder for them to be recognized as hacks later on... I'd appreciate the help :)
Xenon
07-09-2002, 11:47 AM
to comment one line use //
if you want to outcomment a whole block:
/*
block here
*/
Admin
07-09-2002, 12:43 PM
You can also comment a line by preceding it with #.
Xenon
07-09-2002, 12:45 PM
really?
everyday something new :)
but why do the developers than use such type for sectioning?:
// ##### blabla ####
instead of just
##### blabla #### ?
Admin
07-09-2002, 01:02 PM
# Because. :)
Massiel
07-09-2002, 01:04 PM
Let me make sure I understand LOL, don't want to mess things up. If I have one line that I want to leave but that I don't want it to be part of the file, I use
//this is a hack//
if it is more then one line then
/* la la la la la la laa
lalalalalalalla lallalalaa
lalallalaa */
????
Admin
07-09-2002, 01:05 PM
That's correct, but you don't need the // at the end of the line, just at the beginning.
// This is a comment
# This is also a comment
/* And this is a
rather large comment */
Xenon
07-09-2002, 01:06 PM
one line:
// blablabla
or
# blabla
more lines:
/* blblbla
blabla*/
you must always end a /* with a */ but theres no need to close a //, because this comments just till the end of the line..
Massiel
07-09-2002, 01:13 PM
Thank you to both of you, this is a big help!!!! :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.