Bug 373466 - Highlight matching PHP tags
Summary: Highlight matching PHP tags
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-06 23:16 EST by Jive Email CLA
Modified: 2020-05-14 10:17 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jive Email CLA 2012-03-06 23:16:48 EST
Build Identifier: Build id: 20120202-1513 

Please provide highlighting of matching PHP tags/markers/processing
instructions when one tag is under the cursor, like with matching HTML tags or
braces,

i.e.:

1) <?PHP ... ?>

as in:

<html>
    <head>
    </head>
    <body>
        <div>
            <?php  <--- HIGHLIGHT
                echo "Please indent me.";
            ?>     <--- HIGHLIGHT
        </div>
    </body>
</html>

Of particular importance is item 1.

Other formats are:

2) <script language="php> ... </script>
3) <?= ... >
4) <? ... ?>

Item 2 would be nice to match the appearance of javascript code in
<script type="text/php"> ... </script> tags, although I believe this is not
universally supported.

I realize that the short tags in items 3 and 4 are deprecated as they depend on
system settings on the server that may be turned off, and needn't be supported

Reproducible: Always

Steps to Reproduce:
1. Enter mixed HTML, PHP, and JavaScript code in a .php file.
2. Place the cursor on an opening <?PHP tag or a closing ?> PHP tag.
3. Observe that the <?PHP and ?> tags are not highlighted.