PavelTorgashov / FastColoredTextBox

Fast Colored TextBox for Syntax Highlighting. The text editor component for .NET.
Other
1.21k stars 464 forks source link

Some help with Custom Language Syntax #154

Closed NothingFaceX closed 5 years ago

NothingFaceX commented 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 .

Syntax Highlighing Issues

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);

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

  1. I have only one issue , how can I change color or even image of [+] and [-] icon for opening/closing buckets

Thank you :)

NothingFaceX commented 5 years ago

Finally I solved 1 2 3 But still can't find where I can modify [+] and [-] icon for opening/closing buckets.

NothingFaceX commented 5 years ago

Found it myself :D Thx