Hi all.I attach a script in which I try to apply a style to a unicode string with value u’èèèèè ’
In particular, in my code I put these 2 line:
ed.StartStyling (0, stc.STC_INDICS_MASK)
ed.SetStyling (len (demoText) stc.STC_INDIC0_MASK)
with demoText = u’èèèèè’ but this does not work properly.
Is there a way to determine exactly how many bytes of the string so as toapply exactly the style with the correct length?
Attached script.
StyledTextCtrl_1.py (8.32 KB)
···
–
Fabio Spadaro
www.fabiospadaro.com