I've been searching all over for a solution to faulty errors in the code highlighting for NetBeans (7.1.1) when mixing PHP with Javascript. I also use Notepad++ which has no problems with this.
Example:
function showUpload<?php echo $upload;?>(file) { /* JS-code */ }
or:
$('.option-help').qtip({
content: function(api) { return $(this).parent().attr('data-tip'); },
<?php if ($help == 'icon') { ?>
show: { event: 'click' },
<?php } ?>
position: { my: 'bottom left', at: 'top left', of: $(this) }
});
I did find some work-arounds, but I refuse to change code for my IDE!!! (The IDE should help me code, not make things more difficult)
Does anyone know of an actual solution to this problem?