Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
jolopez
Novice


Joined: 31 May 2003
Posts: 49

PostPosted: Wed Apr 21, 2004 1:54 pm   

how to comment code?
 
if i put ; i cant export as ascii (there are bugs with ; no?)
if i put // i cant see the code colored and it says it is bad or something like this
so how can i comment code like ; without using ; sometjing like ' or some trick?
Reply with quote
Rorso
Wizard


Joined: 14 Oct 2000
Posts: 1368

PostPosted: Wed Apr 21, 2004 3:47 pm   
 
quote:
Originally posted by jolopez

if i put ; i cant export as ascii (there are bugs with ; no?)
if i put // i cant see the code colored and it says it is bad or something like this
so how can i comment code like ; without using ; sometjing like ' or some trick?


// is used at the end of lines. There has to be some data before the comment to get it to work like "#noop // test" is valid. However as a // comment on an empty line is both at the beginning and at the end of that line this sounds like a bug. Please send an email to support@zuggsoft.com to report the bug Smile.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed Apr 21, 2004 4:02 pm   
 
I belive // might be buggy with the syntax checker it still comments fine but will give you a syntax error unless you use it Inline with your scripts (as below)

Value:
#add list 2 //This comment is to inform you that this command will add 1 to the count variable

;is for begining line comments (but they don't import correctly) And I believe Zugg has said there is no way to fix this. This one is best to use while debugging scripts or changing scripts.

#NOOP can be used to for text comments

Value:
#NOOP This alias will sort your herb bag
Reply with quote
jroper73
Novice


Joined: 03 Aug 2006
Posts: 30

PostPosted: Mon Aug 14, 2006 5:31 pm   Can't use tabs before an end of a line comment
 
You can not use tabs before using //<comment> to align your comments.

Spaces do work.

If you try and use tabs - they translate into some weird control character

Asbestos
ncmud.org 9000
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net