Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Nov 2007
    Location
    127.0.0.1
    Posts
    348
    Thanks
    26
    Thanked 40 Times in 39 Posts

    Multi-word, multi-line autocomplete for the web. Is it possible?

    Hi all,

    I'm working on a small online code editor.
    http://tagnu.freehostia.com/test/input/jquery/

    Now, I'm focusing on the 'Autocomplete' feature, which works fine as long as I write a single line of code . (using jQuery autocomplete plugin)

    It becomes a mess, the moment I go multi-line .

    I it possible to create a multi-line, multi-word autocomplete field? Something like the autocomplete feature in Notepadd++ ? (screenshot attached)

    Any ideas?

    Thank you.
    Attached Thumbnails Attached Thumbnails Multi-word, multi-line autocomplete for the web. Is it possible?-npp_autocomplete.jpg  
    Last edited by tagnu; 08-12-2010 at 11:07 AM.
    Blog Charity:Water
    WhatisWrongWith.me/tagnu - Send me anonymous feedback.

  • #2
    Regular Coder
    Join Date
    Nov 2007
    Location
    127.0.0.1
    Posts
    348
    Thanks
    26
    Thanked 40 Times in 39 Posts

    autocomplete field for textarea (for multi-line text)

    Apologies! if that was a confusing one. Sorry for not being very clear.

    My first question: Multi-line autocomplete.
    The textarea has autocomplete functionality.

    If I try to write the following code on the textarea, it works fine for the first line. But, when I press the enter key (for newline) and start typing subsequent code, the auto complete works but the new line gets stripped off!

    Please have a try. (link to script)

    Code:
    #include <stdio.h> 
    void main() {
    int i;
    }
    Please don't hesitate to ask any questions if the description is still confusing
    Any pointers appreciated.

    Thank you
    Blog Charity:Water
    WhatisWrongWith.me/tagnu - Send me anonymous feedback.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •