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 210879 - HTML code formatting does not work in PHP heredocs.
Summary: HTML code formatting does not work in PHP heredocs.
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.3
Hardware: Macintosh Mac OS X
: P3 normal with 2 votes (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-08 18:13 UTC by markuszeller
Modified: 2013-01-11 21:55 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description markuszeller 2012-04-08 18:13:18 UTC
Product Version = NetBeans IDE 7.1.1 (Build 201203091344)
Operating System = Mac OS X version 10.7.3 running on x86_64
Java; VM; Vendor = 1.6.0_31
Runtime = Java HotSpot(TM) 64-Bit Server VM 20.6-b01-414

HTML code formatting does not work in PHP heredocs.
Example:

$var = <<<_HTML
<html>
<tags>
<taglevel2>
</taglevel2>
</tag>
</html>
_HTML;
Comment 1 Ondrej Brejla 2012-04-10 16:00:26 UTC
Heredoc content is just a string. We really don't know the mime type.
Comment 2 markuszeller 2012-04-10 18:36:40 UTC
(In reply to comment #1)
> Heredoc content is just a string. We really don't know the mime type.

Suggestions:

a) Check, if the string has something like <.*> inside to detect HTML/XML.

b) The heredoc sting can be named as HTML, XML, TEXT, ... and could be taken as MIME type.
Comment 3 Ondrej Brejla 2012-04-11 07:51:03 UTC
It's really not as simple as it looks like ;) But thanks for your suggestions!