Thanks, Massimo 2009/9/5 mdipierro <mdipie...@cs.depaul.edu>: > > editarea does not do autocomplete but amy editor does. There is a flag > in admin/models/0.py that ley you use Amy editor. It does not work > with every browser but does autocomplete.
oh, interesting. looking at its web site(http://www.amyeditor.com/), its feature for collaborative editing sounds even more interesting. we can have a worldwide online web2py coding sprint using it ? ;-) features like autocompletion may be regarded as just one of nice little features editors can have. but, by extending the feature, i have a hideous ambition to make this already bad, bad framework even badder, and make this DRY framework even DRYer ;-) say, to complete a line db=SQLDB('sqlite://storage.sqlite'), i may type db=SQLD for db=SQLDB(), then type sq to complete the whole line. i may register a whole bunch of coding peaces on autocompletion, and, for example, type def login to suggest me a template for the login function. i may be able to avoid a mistake like items = [A(row.title, _href=URL(r=request, f=show, args=row.id)) for row in pages] by autocompletion's telling me quotation comes after f= like f='show'. this might lead to another feature like 'post-completion' to correct a mistake. these features can be more and more 'intelligent' as the 'autocompletion/postcompletion engine' behind the editor gets smarter. generic autocompletion features on IDE's are nice, of course, but domain-specific autocompletion (postcompletion) features, specifically developed for web2py, can reach a high domain of intelligent programming environment others may not. i don't know how it sounds to others. just thinking loud, so called. -- Teru On 9月5日, 午前4:53, mdipierro <mdipie...@cs.depaul.edu> wrote: > editarea does not do autocomplete but amy editor does. There is a flag > in admin/models/0.py that ley you use Amy editor. It does not work > with every browser but does autocomplete. > > On Sep 4, 9:49 am, suiato <homm...@gmail.com> wrote: > > > in the Auto-completion section, Chap.10, it's nice to find out how to > > incorporate autocompletion in web2py applications with controllers and > > views. > > > my initial interest was to enable autocompletion in coding the program > > online. the editor (EditArea) is a Javascript program located in the > > admin/static/edit_area directory. can i apply the method described in > > the above section in this case? > > > -- > > Teru > > > On 9月4日, 午後9:43, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > Do you know this is discussed in the book? Chapter 10. > > > > Massimo > > > > On Sep 4, 5:45 am, suiato <homm...@gmail.com> wrote: > > > > > On 9月1日, 午後3:20, suiato <homm...@gmail.com> wrote: > > > > ... > > > > > > so far, i've found the web2py editor uses nicEdit, which is written in > > > > > JavaScript and uses jQuery. jQuery has anautocompleteplugin (http:// > > > > > bassistance.de/jquery-plugins/jquery-plugin-autocomplete/). > > > > > looking further, i found: > > > > - nicEdit is used for htmledit, but not for edit. > > > > - editArea (made by Christophe Dolivet) is used for editing the code. > > > > - its code and usage actually look more straightforward than those of > > > > nicEdit. > > > > - autocomple feature is in its todo list :-) > > > > > so, helping Christophe to incorporate the feature looks like the > > > > fastest way to realizeautocompletein web2py. > > > > > -- > > > > Teru --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---