Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » HTML Code Completion inside PHP Tags
HTML Code Completion inside PHP Tags [message #92311] Thu, 29 January 2009 18:18 Go to next message
Antonio Howe is currently offline Antonio HoweFriend
Messages: 1
Registered: July 2009
Junior Member
Hi All,

I recall that in a previous version of Eclipse with the PHP addin, HTML
code completion was enabled whether I was working inside PHP code or not.
In Eclipse PDT All in One V.2 I cannot seem to get this working... is it
at all possible?

IE

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<meta http-equiv="content-type" content="text/html;
charset=iso-8859-1" />
<title>Sorting Arrays</title>
</head>

<body>

<p><b>TEST</b></p> <--- Code completion works for each of the HTML tags here.

<?php

echo '<p><b>TEST</b></p>'; <--- Code completion does NOT work for any of
the HTML tags here, though I'm sure it did in previous versions of
eclipse...

?>

</body>
</head>
Re: HTML Code Completion inside PHP Tags [message #92833 is a reply to message #92311] Wed, 04 February 2009 19:25 Go to previous message
Mark Dexter is currently offline Mark DexterFriend
Messages: 324
Registered: July 2009
Senior Member
Antonio Howe wrote:
> Hi All,
>
> I recall that in a previous version of Eclipse with the PHP addin, HTML
> code completion was enabled whether I was working inside PHP code or
> not. In Eclipse PDT All in One V.2 I cannot seem to get this working...
> is it at all possible?
>
> IE
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
>
> <head>
> <meta http-equiv="content-type" content="text/html;
> charset=iso-8859-1" />
> <title>Sorting Arrays</title>
> </head>
>
> <body>
>
> <p><b>TEST</b></p> <--- Code completion works for each of the HTML tags
> here.
>
> <?php
>
> echo '<p><b>TEST</b></p>'; <--- Code completion does NOT work for any of
> the HTML tags here, though I'm sure it did in previous versions of
> eclipse...
>
> ?>
>
> </body>
> </head>
>
Hi Antonio. As far as I know, this worked the same way in PDT 1.0. I
think if the HTML tags are inside quotes as literals it has always been
ignored. Mark
Previous Topic:WYSIWYG editor for PHP?
Next Topic:PHP editor doesn't validate if no closing PHP tag "?>"
Goto Forum:
  


Current Time: Wed Feb 01 17:06:30 GMT 2023

Powered by FUDForum. Page generated in 0.03226 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top