 |
edb6377 Magician

Joined: 29 Nov 2005 Posts: 482
|
Posted: Sat Aug 19, 2006 7:17 pm
[1.05] Syntax Highlighting Not Working?? |
I pasted
| Code: |
#CLASS {AddOnScripts|Totrain}
#TRIGGER {~[ ~# ~] ~[(%s)(%w) Name(%s)~](*)} {#var skilltype %2;#if (@skilltype == "Spell") {#var skilltype "spells"};#if (@skilltype == "Proficiency") {#var skilltype "proficiencies"}}
#TRIGGER {(%d)(*){@schools}%s%d~%%s&percent~%} {#IF (@percent < 74) {#SUBSTITUTE {%ansi(yellow,bold)%trigger}} {#IF (@percent > 74) {#IF (@percent < 85) {#SUBSTITUTE {%ansi(green,bold)%trigger};#ADD counter 1} {#IF (@percent > 99) {#SUBSTITUTE {%ansi(red,bold)%trigger};#ADD counter 1} {#IF (@percent > 85 and @percent < 100) {#SUBSTITUTE {%ansi(blue,bold)%trigger};#ADD counter 1}}}}}}
#TRIGGER {(%d)(*){@schools}%s%d%s(%d)~%%s&percent~%} {#IF (@percent < 74) {#SUBSTITUTE {%ansi(yellow,bold)%trigger}} {#IF (@percent > 74) {#IF (@percent < 85) {#SUBSTITUTE {%ansi(green,bold)%trigger};#ADD counter 1} {#IF (@percent > 99) {#SUBSTITUTE {%ansi(red,bold)%trigger};#ADD counter 1} {#IF (@percent > 85 and @percent < 100) {#SUBSTITUTE {%ansi(blue,bold)%trigger};#ADD counter 1}}}}}}
#TRIGGER {~[C~]ontinue ~[R~]edraw ~[B~]ack ~[E~]xit:} {#GAG;#CR} "" {nocr|prompt}
#TRIGGER {^You have the ability to learn ~[&total]} {#math totaltrain (@total-@counter)}
#TRIGGER {^You have ~[%d~] practice sessions.} {#echo %ansi( grey)You have %ansi( blue, high)~[%ansi( grey)@totaltrain%ansi( blue, high)~]%ansi( grey) @skilltype left to train.}
#TRIGGER {^Color Key: ~[Active~] ~[Inactive~] ~[Altered +~] ~[Altered -~] ~[Unavailable~]} {#GAG}
#CLASS 0
|
Into the editor and set the options no word wrap <-- it causes errors in scripts with long lines.
Set options syntax highlighting and syntax check and get nothing |
|
_________________ Confucious say "Bugs in Programs need Hammer" |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Thu Sep 21, 2006 10:00 pm |
I pasted this into the Text Editor window (which I know is hard to test with 1.06), and regardless of the wordwrap setting, the Format/SyntaxCheck command reported no errors.
I did find a problem with the WordWrap command itself though, so maybe that is what you mean by "errors in scripts". Seems that the WordWrap option is only changing the wordwrap setting for the current paragraph that the cursor is in, rather than changing the setting for all the paragraphs. I've added this to the bug list.
But when you talk about "errors in scripts", I'm thinking syntax errors and stuff like that, so I'm assuming there was some other problem you were talking about. |
|
|
|
 |
edb6377 Magician

Joined: 29 Nov 2005 Posts: 482
|
Posted: Fri Sep 22, 2006 7:55 am |
i mean with word wrap enabled it produces errors that tend to be erroneous.
|
|
_________________ Confucious say "Bugs in Programs need Hammer" |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Sep 22, 2006 4:27 pm |
OK, well then I need the specific text because with word wrap enabled I have not been able to get any syntax errors.
|
|
|
|
 |
edb6377 Magician

Joined: 29 Nov 2005 Posts: 482
|
Posted: Sat Sep 23, 2006 12:53 am |
| Quote: |
| But when you talk about "errors in scripts", I'm thinking syntax errors and stuff like that, so I'm assuming there was some other problem you were talking about. |
my reply was in response to this. I apologize i didnt make it clearer. I am rushed for time lately and try to keep my posts to a minimum unless i have it readily available.
| Quote: |
| Seems that the WordWrap option is only changing the wordwrap setting for the current paragraph |
That would cause erroneous errors.. Thats what i was trying to say. The only problem i had you have fixed. There is nothing more than i am aware of. The above text was the exact text. |
|
_________________ Confucious say "Bugs in Programs need Hammer" |
|
|
 |
|
|
|