Login | Register
My pages Projects Community openCollabNet

Discussions > tsWebEditor > Questin about code completion.

Project highlights: home | downloads | news | features | screenhots | support

Discussion topic

Hide all messages in topic

All messages in topic

Re: Questin about code completion.

Author thaj
Full name Thaler
Date 2006-11-11 08:18:19 PST
Message Hello,

you can use this command to assign a variable a class to get
code completion for this class (because php use untyped

>[example code]
>/*% comment */
>function test($a, $b) {
> echo $a .' - '. $b;
>[/example code]
this is a bug, shouldn't work

This way it should be used:

class Class1 {function Test1() {}}
class Class2 {function Test2() {}}

function test(/*% Class1 */ $a, /*% Class2 */ $b) {
  echo $a->Test1() .' - '. $b->Test2();


Questin about code completion.

Author cyberjack
Full name Peter
Date 2006-11-10 06:32:35 PST
Message Hi.

First of all... GREAT PROGRAM, i realy love working with it :)

I have a question about code completion. In the
documentation of version (20061029) is a part of
special commands in code completion. It is possible to add a
comment to a variable with the following: /*% command */ php
This results in a nice comment for a variable. Now when I do
this with a function it results in the following.

[example code]
/*% comment */
function test($a, $b) {
  echo $a .' - '. $b;
[/example code]

now when I type "test" the code completion shows me the

test(comment $a, $b)

The comments are shown before the first parameter in the
function. Now my question is, is it possible to add comment
for each of the parameters defined in the function? This way
 it's easier to define parameter types (like shown in
predefined function).

Messages per page: