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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
hav
Wanderer


Joined: 05 Oct 2004
Posts: 61
Location: Riga, Latvia

PostPosted: Fri Dec 15, 2006 11:14 am   

[1.24] syntax highlighting
 
First trigger with 200 line script I tried porting over from zmud takes 12 seconds to enable highlighting. Also colours some portions wrong all green.
Maybe it's something specific with this particular script. I'll try porting other triggers later today. Zmud has no such problems, 1 second to highlight and all colours right.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Fri Dec 15, 2006 3:51 pm   
 
You'll want to turn off the syntax highlighting for scripts that big. It's not designed to handle stuff that big. The current syntax highlighter is a generic component that can read *.stx syntax files available for various languages, and I haven't optimized it yet. When I add support for other scripting languages in a few months then I'll be optimizing the highlighting.

Also, since it's a generic syntax highlighter, it doesn't perform a full parse of your script, so the highlighting is only a guideline. Now that the CMUD parser is working well, I might switch to using it for highlighting (which is how zMUD worked) in the future.
Reply with quote
crycry
Apprentice


Joined: 24 Jun 2006
Posts: 169
Location: UK - South Coast

PostPosted: Fri Dec 15, 2006 4:34 pm   
 
jeez 200 line script? what does it do? and does it make coffee?
_________________
'Life is what happens, when your too busy doing something else'

_________________

XP Pro SP2
cMud 1.24
_________________
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Fri Dec 15, 2006 4:41 pm   
 
That's nothing! My combat system for Lusternia is over 2,700 lines of code, and that's only one line per alias/trigger/etc, no matter how much code goes into each one. Cool
Reply with quote
crycry
Apprentice


Joined: 24 Jun 2006
Posts: 169
Location: UK - South Coast

PostPosted: Fri Dec 15, 2006 4:45 pm   
 
lol cool, botting is highly illegal on our mud.. which im kinda glad of, but each to their own :)
_________________
'Life is what happens, when your too busy doing something else'

_________________

XP Pro SP2
cMud 1.24
_________________
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Fri Dec 15, 2006 4:50 pm   
 
It's not "botting," exactly. It's just a defensive curing script. If my MUD disallowed it, it wouldn't be my MUD. I live to code.
Reply with quote
crycry
Apprentice


Joined: 24 Jun 2006
Posts: 169
Location: UK - South Coast

PostPosted: Fri Dec 15, 2006 4:51 pm   
 
oh thats cool :) sounds fun.. i dont think we have that much we can do infight to be able to script like that, or i would do to
_________________
'Life is what happens, when your too busy doing something else'

_________________

XP Pro SP2
cMud 1.24
_________________
Reply with quote
Renegade
Beginner


Joined: 25 Oct 2006
Posts: 14

PostPosted: Sat Dec 16, 2006 4:13 am   colors
 
how do you use bright colors with the #CW
such as bright red.?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sat Dec 16, 2006 5:57 am   
 
It's "bold", so #CW bold,red or #CW bold,blue,green
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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