Auto Completion

Auto Completion

1
NewbieNewbie
1

    May 22, 2006#1

    Hi,

    I want to know how to write a file for supporting auto completion feature in UltraEdit. For example, in a 'C' file, if i type "for" and press a particular key or command, the it has to be replaced by a set of lines as shown below:

    for ( ; ; )
    {

    }


    Thanks & Regards,
    Sreenivas M

    6,687587
    Grand MasterGrand Master
    6,687587

      Jun 18, 2006#2

      It's not possible to write a multi-line string into the auto-completion file. The tag file support it, templates support it and also macros.

      Disadvantages of tags: No hot keys, no cursor placement after inserting the multi-line string and no auto indentation support. Access to the templates only via the tag list.

      Disadvantages of templates: No auto indentation support.
      Advantages of templates: Hot keys and cursor placement after insert are possible. A template list also exists.

      Advantages of macros: None of the limitations above, if your macro is well written. Macro list also available.
      See for example How to auto complete "if...end if" ?
      Best regards from an UC/UE/UES for Windows user from Austria