Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Embedded PHP scripts in Javascript files
Embedded PHP scripts in Javascript files [message #547790] Mon, 19 July 2010 15:41
Marc Chamberlin is currently offline Marc ChamberlinFriend
Messages: 27
Registered: July 2009
Junior Member
Hello -

I will preface this by saying if the answer to my questions is
documented somewhere, please point the way, I am willing to try an grok
on my own. ;-)

I am new to the world of Eclipse and admit it is daunting to try an
understand it all.. That said, I am trying to bring a fairly large
project into the Eclipse-Helios IDE that involves a mixture of
Javascript, JSP, HTML, and PHP. Working on a Linux system. One issue
that I am struggling with -

Many of the Javascript files also have embedded PHP script segments as
well. The Javascript parser complains about the <?php ... ?> tags
that delimit the PHP script segments and reports them as an error. A
workaround I have found is to remove the PHP segments to their own file,
and use a Javascript "include file;" statement instead. But this is
painful as I have a LOT of these to deal with.. Any way to teach the
Javascript parser that these tags are OK, and as a bonus have the PHP
parser validate those segments also?

Thanks in advance for any suggestions and offers of help!

Marc...
Previous Topic:Adding custom hovertext to JSP Editor
Next Topic:E4X support
Goto Forum:
  


Current Time: Sun Dec 21 13:03:29 GMT 2014

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

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