yabab-dev / ng2-codemirror

Angular2 CodeMirror component
MIT License
71 stars 30 forks source link

How to Add Addons(hint/show-hint.js) to my angular2 codemirror? #12

Closed shubhijain106 closed 7 years ago

shubhijain106 commented 7 years ago

Im a beginner and using codemirror in angular2 and want to add autocomplete to my editor. My config is set to javascript.

https://plnkr.co/edit/5aiqpxjCtVmVS4VCeKmC?p=preview

rt-gavrilov commented 7 years ago

@shubhijain106 here is the working example with highlighting, autocomplete (by ctrl+space) and autoheight:

https://plnkr.co/edit/xvW5LU8cQat8NsGSoGuc?p=preview