From quanta Sat Dec 02 13:31:19 2006 From: Andras Mantia Date: Sat, 02 Dec 2006 13:31:19 +0000 To: quanta Subject: Re: [Quanta] html auto completion in a PHP string Message-Id: <200612021531.24246.amantia () kde ! org> X-MARC-Message: https://marc.info/?l=quanta&m=116506634927094 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1495569328==" --===============1495569328== Content-Type: multipart/signed; boundary="nextPart1348123.pM00XxHY3L"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1348123.pM00XxHY3L Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 02 December 2006 09:02, James Porter wrote: > I have noticed that sometimes it works and sometimes it doesn't. I > seems to work all the time with form elements. I do like the newer > php completeion that actually looks into your instantiated classes. > Makes it handy for things besides the php functions. Can you give examples when it works and when it doesn't work. AFAIR it=20 never should work. ;-) The only case you migh get some kind of=20 autocompletion there if you have enabled the KTextEditor word=20 completion plugin, which will use already existent words from the=20 document as a completion source. So for example: But this has nothing to do with Quanta's functionality, you might get=20 the same in KWrite or Kate. The reasons why it doesn't work are various, including: =2D "<" is commonly used in not markup languages (comparision operator),=20 so always showing a list of choices after it is a bad idea =2D PHP might be included in several markups =2D you may construct strange things in PHP (echo "<".$something."ml >"') =46or sure it is possible to do it, but I didn't really bother with it, as= =20 it's a special case. You can almost always separate PHP and HTML code,=20 and if you just use one html tag or two in a PHP printout, it doesn't=20 really make sense to have autocompletion for them, as it anyway=20 wouldn't speed the work up that much (compared to pure HTML area where=20 you often write tags). Andras =2D-=20 Quanta Plus developer - http://quanta.kdewebdev.org K Desktop Environment - http://www.kde.org --nextPart1348123.pM00XxHY3L Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFcYAsTQdfac6L/08RAkUXAKCVUfAHQN8e2wR0QPMaX0HWFHZqqACfX5yL aglXIKgEZg0PRxAtz/OMaYE= =fTiy -----END PGP SIGNATURE----- --nextPart1348123.pM00XxHY3L-- --===============1495569328== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Quanta mailing list Quanta@mail.kde.org https://mail.kde.org/mailman/listinfo/quanta --===============1495569328==--