Closed NothingFaceX closed 5 years ago
Dear @PavelTorgashov
I'm using FastColoredTextBox for a custom language and I stuck in some regex and styling issues.
sorry they are simple but It's about 3 days i can't figure it out .
1.Tags and Arrays I have two type of syntax with '#' character.
Tags starts with '#' and ends with ':' like :
new Object #tag1:"Hello" #tag2:"World!"
And arrays start with #( and end with ) it's like
#(
)
var array_1 = #(1,2,3,4,5);
2.Objects, in my syntax objects starts with $ and end with nothing , it's like :
$
var object1 = $object_scene_1 ;
I already use NScriptObjects= new Regex(@"\$(\S+)\s?", RegexCompiledOption);
NScriptObjects= new Regex(@"\$(\S+)\s?", RegexCompiledOption);
but the result is selected $object + 1 space line ''
3.Keywords , my language is not sensitive to lower or upper words. how can I highlight for example (Create , create , cReatE , ...) keywords ?
Thank you :)
Finally I solved 1 2 3 But still can't find where I can modify [+] and [-] icon for opening/closing buckets.
Found it myself :D Thx
Dear @PavelTorgashov
I'm using FastColoredTextBox for a custom language and I stuck in some regex and styling issues.
sorry they are simple but It's about 3 days i can't figure it out .
Syntax Highlighing Issues
1.Tags and Arrays I have two type of syntax with '#' character.
Tags starts with '#' and ends with ':' like :
And arrays start with
#(
and end with)
it's like2.Objects, in my syntax objects starts with
$
and end with nothing , it's like :I already use
NScriptObjects= new Regex(@"\$(\S+)\s?", RegexCompiledOption);
but the result is selected $object + 1 space line ''
3.Keywords , my language is not sensitive to lower or upper words. how can I highlight for example (Create , create , cReatE , ...) keywords ?
Styling
Thank you :)