Custom an autocomplete feature in JavaScript

Job ID: 31451149

Budget: €6 – €12 EUR

Do you think that I can custom the way auto-hint used for a VB.net editor (in CodeMirror) is activated not only by adding new extrakeys (since there is no vb-hint.js file in CodeMirror library)?

I want it to look like a basic IDE intellisense :

I would want to have 3 types of string data : a Page+ Fields / Functions. Because in my HTML text area I have to apply a function to Fields from a Page, for example :

`Page1.Field3.Field3b.functionSum(a,b)`

So I need my autocomplete feature to understand that a ' . ' is used to create an autocomplete but the autocomplete has to consider the fact that at first we need just pages (so it has to suggest only pages) then at least 1 field and after a field suggest only a child field or a function. The functions are always the same they're not depending on the name of the field

I thought that I would create 3 var(objects) : PAGE / FIELD / FUNCTIONS add an 's' attributes to the PAGE var. So that FUNCTIONS will only appear after a FIELD. Using the way it is made in the html-hint.js


I think the main thing is how I can create a context that differentiate a Page and Field and how the dot extrakey will allow me to suggest the right words considering what has been typed before.
Related categories: JavaScript HTML VB.NET