mIRC Home    About    Download    Register    News    Help

Print Thread
comenting #2493 19/12/02 01:11 AM
Joined: Dec 2002
Posts: 39
L
Larra Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Dec 2002
Posts: 39
what about a way to comment blocks of code like c does
/*
code here
and here
*/

or some other simbols

Re: comenting #2494 19/12/02 01:13 AM
Joined: Dec 2002
Posts: 144
D
Dana Offline
Vogon poet
Offline
Vogon poet
D
Joined: Dec 2002
Posts: 144
You would do it with the ; symbol in mIRC.

Example:

Code:
; this is a comment on something
alias whatever { say hi! moo! }


"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke
Re: comenting #2495 19/12/02 01:14 AM
Joined: Dec 2002
Posts: 1,321
H
Hammer Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Code:

  ; These are comments.
  ;
  ;  They can be continued across multipe lines by
  ;  prefacing each line with a semi-colon.
  ;
  var %i = 1 | ; here is another way to add an "inline" comment
  ;
  ;  Hopefully, this answers your question. :o)


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
Re: comenting #2496 19/12/02 01:38 AM
Joined: Dec 2002
Posts: 39
L
Larra Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Dec 2002
Posts: 39
I know that
but lets see you want to comment several lines
; become annoying

Re: comenting #2497 19/12/02 01:58 AM
Joined: Dec 2002
Posts: 35
T
tom420 Offline
Ameglian cow
Offline
Ameglian cow
T
Joined: Dec 2002
Posts: 35
mIRC scripting is based on a line-by-line basis, so it would probably be complicated for Khaled to handle multiple line comments.

Re: comenting #2498 19/12/02 02:33 AM
Joined: Dec 2002
Posts: 103
Pasmal Offline
Vogon poet
Offline
Vogon poet
Joined: Dec 2002
Posts: 103
I don't think it would be too hard, he'd find a line starting with /** and skip all lines until */ was found.

I personally like the idea smile

Re: comenting #2499 20/12/02 04:35 PM
Joined: Dec 2002
Posts: 204
K
keeker Offline
Fjord artisan
Offline
Fjord artisan
K
Joined: Dec 2002
Posts: 204
if it aint broke, dont fix it


keek: Scots - intr.v. keeked, keek·ing, keeks
To peek; peep.