Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm creating a scripting IDE for my company and i'm using FastColoredTextBox control as a syntax editor

Basically, the script will be written in VB.NET or C#.

What i need is to analyze the script code as the user types and generate intellisense items based on current context just like what visual studio does.

Is there any idea how to implement this in a fast responsive way ?
Posted
Comments
Mehdi Gholam 30-Nov-15 7:39am    
Try Sharpdelevop.
Mohammed Elmahdy 30-Nov-15 8:31am    
Thanks Mehdi for your quick response.
Unfortunately, SD won't work for me, we need a very light-weight IDE, something like NP++
I tried to implement it using Roslyn based on RoslynPad but CompletionService roslyn class was changed from public to internal so i can't apply it this way either.
F-ES Sitecore 30-Nov-15 8:46am    
You can use Reflection to find out what properties\methods\etc are available on a class. What you're attempting to do isn't trivial though, so don't expect a few lines of code that will implement this.
Mohammed Elmahdy 30-Nov-15 8:56am    
Sorry i didn't make it clear enough, my problem is not how to get MemberInfo list using reflection, my real problem is how to detect the current context to determine exactly which members will be displayed so i need to know if the user typed "." inside a commented block or right after a variable name or in a using statement etc...
I know it's not an easy task but i hope anyone here gone for it before or has some piece of info to share.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900