no the * wasn't there and i didn't put it in the email either ;o) weird .... can u send me ur properties file that u modified..thanks !

Philippe Lhoste wrote:
Daniel Goupil wrote:
i've changed what u said and nothing change .. the $ stay grey

*# White space
style.cpp.0=
# style.cpp.0=fore:#808080*
[...]
# Identifiers
style.cpp.11=

and this

word.chars.cxx=$(chars.alpha)$(chars.numeric)_#
word.characters.$(file.patterns.cpp)=$(word.chars.cxx)
word.characters.$(file.patterns.cs)=$(word.chars.cxx)
*word.characters.*.mel=$(word.chars.cxx)$*

Thanks for ur help!

Philippe Lhoste wrote:
Daniel Goupil wrote:
The only thing I need is the same thing as the cpp properties file but variable that begins with $ ... my c++ skill is not good enough to compile my own.... anyone want to modify the c++ lexer to make a melscript (.mel) .... the only difference is the $ for the variable ?

In this case, a simple workaround is to set the style.cpp.0 (Whitespace and unknown chars, including $) to the same style as style.cpp.11 (Identifiers).
And add this line:
word.characters.*.mel=$(word.chars.cxx)$

I am not sure why there are * in the code you gave, I hope they are not in your file... I just tried, it works for me, both $ and varName are black with my settings. And if I put the same fore color in both styles, they get both the same color.



_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to