Menu

complete language API with syntax help

2005-10-18
2012-11-13
  • Nobody/Anonymous

    Hello,
    As an ex'SciTE user (no joke !), I'd like to have a complementary syntax help in the language API.
    Where can I have it, or is it plannified in futur developpement or plugin ?
    Thanks,
    Pascal

     
    • Nobody/Anonymous

      Oh, not any response... maybe I was not able to give a correct explanation of what is attempted !

      So, there is a lot of files with "api" extension that are used to indicate keywords for auto-completion feature into each language.

      In SciTE, the same files complete each keyword with some syntax indications that, of course, are not printed on screen.

      Here is an example with a basic PHP syntax and the corresponding entry in the "php.api" file :

      echo(string arg1 [, string argn...]) Output one or more strings (void)

      As you can see, it's very usefull for a quick reference guide, just to avoid syntax misspells.

      Pascal

       
      • Paulius

        Paulius - 2005-10-22

        In Notepad++ <language>.api file is just a sorted list of words that will appear in the drop-down box when you hit CONTROL + SPACE. There are no help about function parameters, return type etc.

         
        • Rasmus Schultz

          Rasmus Schultz - 2007-03-27

          Could it be added? I've been looking at the source code, though I'm a PHP programmer and not (much of a) C/C++ programmer, and it looks like the auto-complete functions in Notepad++ and Scintilla are pretty small and fairly simple.

          Since you can use regular expressions, it shouldn't be too much work to have it ignore anything inside paranthesis during keyword lookup? And then still have it show up on screen?

          The auto-complete feature is not much use in it's current state - remembering the name of the command is not usually the problem ... remembering which arguments it takes, and in what order, on the other hand, usually is...