HighLight class missing/wrong codes?

Post

Posted
Rating:
#1 (In Topic #1304)
Regular
sergioabreu is in the usergroup ‘Regular’
If I dump the TextEditor Styles it reveals:

<COLOR color="#0000FF">0 => Normal</COLOR>
1 => Background

22 => Expansion (used to color the dollar variables)

In Highlight class we have:
0 => Background (inverted index with Normal)
<COLOR color="#0000FF">1 => Normal </COLOR> (inverted with background)
<COLOR color="#FF0000">no expansion property (22)</COLOR>

So why should we use [Hightlight.property]  if it doesn't cover the actual style?  I had to use a custom class with enum.
Online now: No Back to the top

Post

Posted
Rating:
#2
Regular
sergioabreu is in the usergroup ‘Regular’
Could it be caused the the javascript hightlight chosen ?
Online now: No Back to the top

Post

Posted
Rating:
#3
Guru
BruceSteers is in the usergroup ‘Guru’
 it will vary depending on what mode/highlight the TextEditor is using.

for "gambas" it's different to "sh" and different to "html", etc

Read my other reply on your other post about using TextEditor.Theme and State names and not using TextEditor.Style and the Highlight constants as it'#s probably easier that trying to get your head around the old way and how all the different styles had to share the list of limited constants somehow..
Online now: No Back to the top
1 guest and 0 members have just viewed this.