5

I need to implement a functionality very similar to IntelliSense in Visual Studio:

  • code completion
  • syntax checking

But in a web page.

Is there any framework out there to achieve so? What would be the best approach for it?

  • 2
    You've tagged this JS so I'm guessing you want a JS library for this - however for clarity.... are you also interested in Flash/Silverlight/other plugin based methods? What browser(s) do you need at minimum? Do you care about pricing? – Nick Wilde May 10 '14 at 12:52
  • 1
    I'm not interested in any other plugin based methods, and I just need the current browsers, FF, Chrome, and IE. Pricing can be looked at – Rafael May 12 '14 at 8:33
  • 1
    What languages does it need to support? – Nick Wilde Jun 3 '14 at 7:31
  • 1
    I would like to add my own reserved instructions as we have a proprietary language – Rafael Jun 3 '14 at 9:10
  • My recommendation should be pretty easy to add your own hinting/syntax highlighting to – Nick Wilde Jun 3 '14 at 15:24
2

Well I've been using CodeMirror in a TinyMCE plugin that I've done a couple edits to; and I just now realized that you can enable code hinting as well as syntax highlighting which I knew. Currently hinting support is available for JS, XML, HTML, Python, SQL, CSS/LESS/SCSS and "any word". It should be quite easy to add hinting support for other languages given those example files and a good understanding of the other language.

CodeMirror is open-source under the MIT License and free. Optionally you can also purchase a commercial support license.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.