Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Eclipse cannot handle htm files with embedded php
Eclipse cannot handle htm files with embedded php [message #498656] Tue, 17 November 2009 22:05
Bryan Mising name is currently offline Bryan Mising nameFriend
Messages: 10
Registered: October 2009
Junior Member
Hi everyone maybe this is an easy question for you. For security reasons I have a website that has all .htm extensions that are parsed by PHP.

So here is a sample of my code
<?php
          do stuff;
?>

<!doctype html>
  <html>
    <head>
    <title>Hello</title>
    </head>
    <body>
      <?
             do more stuff;
      ?>
     </body>
  </html>


With code style eclipse will sometimes show errors with my PHP code or with my HTML code like <a> tag not closed. Even though my syntax is correct.

Eclipse doesn't seem to be able to parse the PHP code as PHP code and the HTML code as HTML all in one file.

Is there a way to tell eclipse to do this?

Here is a more realistic example of what I get a compiler error on. I get the error "Start tag (<a>) not closed."

<a href="<?=HELP_ERROR_CODE_XX;?>" target="someplace">Error Message</a>


thanks
Previous Topic:Xdebug: tens of sessions simultaneously
Next Topic:How to keep my Update Site Project up to date?
Goto Forum:
  


Current Time: Sun May 16 15:53:16 GMT 2021

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

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

Back to the top