This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 206465 - When a php code is inside a html comment (<!-- ... -->), the php code is also commented, but NetBeans does not show it in the color for commented code (grey by default). Instead, it shows the php code with the normal colors for effective uncommented code.
Summary: When a php code is inside a html comment (<!-- ... -->), the php code is also...
Status: CLOSED INVALID
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0.1
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-16 08:57 UTC by canbeiro
Modified: 2011-12-21 03:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description canbeiro 2011-12-16 08:57:56 UTC
Product Version = NetBeans IDE 7.0.1 (Build 201107282000)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_29
Runtime = Java HotSpot(TM) Client VM 20.4-b02
Comment 1 Ondrej Brejla 2011-12-19 09:32:24 UTC
It's not true. PHP code which is commented by HTML commet is executed normally. Try to run this snippet via php..."Commented foo" is in the output:


<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <!--<?php echo "Commented foo"; ?>-->
    </body>
</html>
Comment 2 canbeiro 2011-12-21 03:31:44 UTC
Obrejla is correct, my fault. 

If the php code includes something at the source file inside html comments, this something is simply not displayed at the browser, because it gets commented, but it is there and can be viewed at the source code of the displayed page.

Thanks for your answer, Obrejla.

I am changing the status of my report to closed.