Well, it's sure I haven't expressed it correctly in English, and this post have grown unnecessarily.
Leaves one last point: Why/How does that need GetDefaultAttribute?
Actually, it can live without that. But when it's needed to access to common attributes of a HL through the editor, for config, it's desirable to have an easy way for that. And NUMBER are a common attribute.
Does/Will/Do you plan: The user can define it's own attributes ?
I haved considered. It would be relative easy. But I'm afraid of that imply to change the struct of the Base Class of the HL.
By now I have predefined these Attributes:
tkNull, tkIdentif, tkKeyword, tkDirective, tkVariable, tkNumber, tkSpace, tkString, tkComment, tkSymbol, tkLabel, tkAsm, tkExtra1, tkExtra2
Firts I am worried on defining the properties of the attributes:
<Attribute Name='MYSTRING' type='STRING' ForeColor="$$$$" Backcolor="$$$$">
</Attribute>
Also I want to include the process of symbols, and operators.
But what is important for me, is struct someway for to manage folding on a scritptable HL (for me, it belong to the syntactic level) and the nested HL. I hope you can help me on this issue.
Later, I would like to improve the code-completion, making it part of the "syntax file". In that way, all the highlighting, folding and completion could be joined on a uniq "syntax file".