|
hav Wanderer
Joined: 05 Oct 2004 Posts: 61 Location: Riga, Latvia
|
Posted: 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. |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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. |
|
|
|
crycry Apprentice
Joined: 24 Jun 2006 Posts: 169 Location: UK - South Coast
|
Posted: 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
_________________ |
|
|
|
Larkin Wizard
Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: 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.
|
|
|
|
crycry Apprentice
Joined: 24 Jun 2006 Posts: 169 Location: UK - South Coast
|
Posted: 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
_________________ |
|
|
|
Larkin Wizard
Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: 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.
|
|
|
|
crycry Apprentice
Joined: 24 Jun 2006 Posts: 169 Location: UK - South Coast
|
Posted: 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
_________________ |
|
|
|
Renegade Beginner
Joined: 25 Oct 2006 Posts: 14
|
Posted: Sat Dec 16, 2006 4:13 am colors |
how do you use bright colors with the #CW
such as bright red.? |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sat Dec 16, 2006 5:57 am |
It's "bold", so #CW bold,red or #CW bold,blue,green
|
|
|
|
|
|