Code Suggest or AutoCompletHow to use the autocompletion.js
Brought to you by:
cdolivet
I downloaded the latest version of editarea, and there is a autocompletion.js, it is used to do code suggest or autocomplttion acrrording to the comments,but I don't know how to use it, could you help me with this?
I would love to see this feature - I'd probably use EditArea all the time if it supported autocomplete for PHP, XHTML and CSS.
I have been able to get this to work. Would you still like guidance?
View and moderate all "feature-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Feature Requests"
look in ./edit_area/reg_syntax/html.js php.js css.jss js.js - these are files where autocomplete takes keywords from,
found out that html.js does not have values for:
- editAreaLoader.load_syntax["html"] = { .... , ,'AUTO_COMPLETION' : {....}} - so I took values from js.js, added html keywords and it works !!! :) !!!
but also init it:
- editAreaLoader.init({ ..., ,plugins: "autocompletion" });
- and copy the autocompletion.js in ./edit_area/plugins/autocompletion/autocompletion.js, create ./edit_area/plugins/autocompletion/langs/en.js
Last edit: Anonymous 2015-02-07