Highligh and intellisense error
| Project: | VS.Php for Visual Studio 2005 |
| Component: | Editor |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Hello,
I thing you have a bug when you put some PHP code in some string constant at JavaScript code.
Example:
<script type="text/javascript">
<!--
function UpdateDataInterval(siteid)
{
document.getElementById("data_interval").innerHTML = '<span style="color:orange; font-weight:bold;">'+GetLangString('t_downloading')+' ...</span>';
if (window.ActiveXObject)
{
httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
httpRequest = new XMLHttpRequest();
}
httpRequest.open("GET", "download.php?source=<?php echo $datasource; ?>&ajax_datasite="+siteid, true);
(....)
I got an "Can not continue due to parsing error" error at the "=" in "source=< ?php" and the IntelliSense stops working at all code after this line. A screenshot
Can you correct it?
Also I'm getting this error at the very beginning (right after the <? php ) of some large PHP files (it's part of vBulletin board and my custom pages for this system, so I can't send you the files, I'd violate the copyright) - it's full of included files and stuff, some of the include & require are using contstants - can this be the problem? That VS.PHP can't evaluate something like
<?php
include DIR.'file.php';
?>?
And two feature request:
1. can you include the highlighting of valuables used in "" strings? For example, I'd like to highlight $something at
<?php
echo "blabla $something blabla";
?>2. Is it possible to add highlighting for JavaScript code in ? That's help me a lot.
Thank you for your time.
My system: Windows XP SP2, Visual Studio 2005

