Hey Guys, My first post here. I have been trying to develop a simple text/code editor using the #Develop TextEditor.
I have got the Text editor working fine in my application but i am struggling to get Code Folding working. Well i have it working fine, just cant come up with an algorithm/method for implementing the IFoldingStrategy interface.
I got a simple Strategy working fine. It worked by looping and creating a list of all the { and another list of all the } occurances in the code. It then looped through all the } and matched it up with the LAST occurance of } and then removed them both from the lists and moved on to the next.
This doesnt exactly work sadly :(. I was hoping if someone could give me a nudge in the right direction for working out an IFoldingStrategy for .NET Languages such as C# or C++. I thought i may be able to find them in the source code download but no luck.
Thanks for you time in reading, Any help would be greatly appriciated, Im sure i will have more questions soon enough but this one is getting to me.
Andy