Embedded PHP scripts in Javascript files [message #547790] |
Mon, 19 July 2010 11:41 |
Eclipse User |
|
|
|
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...
|
|
|
Powered by
FUDForum. Page generated in 0.03017 seconds