Menu

#30 Code Suggest or AutoCompletHow to use the autocompletion.js

open
nobody
5
2010-07-29
2010-07-29
No

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?

Discussion

  • Paul Feakins

    Paul Feakins - 2011-07-07

    I would love to see this feature - I'd probably use EditArea all the time if it supported autocomplete for PHP, XHTML and CSS.

     
  • Gabriel Nahmias

    Gabriel Nahmias - 2011-11-26

    I have been able to get this to work. Would you still like guidance?

     
  • Anonymous

    Anonymous - 2012-07-02

    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

Log in to post a comment.

MongoDB Logo MongoDB