javascript - Live autocomplete in Codemirror - Stack Overflow

It seems that Codemirror plugin show-hint is activated by shortcut. I need to implement live autoplete

It seems that Codemirror plugin show-hint is activated by shortcut. I need to implement live autoplete functionality, i.e. show hints after user entered first letters of keyword. Is there a way to do this with Codemirror?

It seems that Codemirror plugin show-hint is activated by shortcut. I need to implement live autoplete functionality, i.e. show hints after user entered first letters of keyword. Is there a way to do this with Codemirror?

Share Improve this question asked Jan 24, 2018 at 9:41 Eugene KrakosEugene Krakos 1591 silver badge8 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 2

Yes, there is a way to do this with CodeMirror. You can see the description of the addon for this here. CodeMirror offers the hint/show-hint.js addon that allows you to display hints when a keyboard short-cut is used.

You can find additional information on adding hints in this StackOverflow question as well.

Additionally, you can checkout their demo here.

You could have a function that is fired off after a keyup event. An example of an implementation is in this Stack Overflow answer.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745670857a4639393.html

相关推荐

  • javascript - Live autocomplete in Codemirror - Stack Overflow

    It seems that Codemirror plugin show-hint is activated by shortcut. I need to implement live autoplete

    6小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信