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 125684 - Will be useful have highlighting inside double quoted and heredoc strings (include curly).
Summary: Will be useful have highlighting inside double quoted and heredoc strings (in...
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.2
Hardware: All All
: P2 blocker with 3 votes (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-21 15:20 UTC by Victoria Zhukovskaya
Modified: 2015-04-14 07:30 UTC (History)
3 users (show)

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 Victoria Zhukovskaya 2008-01-21 15:20:45 UTC
Will be useful have highlighting   inside string

Build 200801201200

Will be useful have highlighting inside double quoted and heredoc strings (include curly).

f.e. for highlighting:
- variables
- variables, methods and functions inside string with Complex (curly) syntax;
- Escaped characters
- Opening and closing identifiers for  heredoc strings
Comment 1 bluppy2 2009-11-04 12:51:46 UTC
I agree. Because we don't always use state-of-the-art MVC framework, we often have to put some HTML (or javascript, or SQL) in strings before it's printed. It 
would be great to have some syntax highlighting inside these strings.
Comment 2 bluppy2 2009-12-17 13:13:59 UTC
Any news on this? I understand that there is a long list of bugs/enhancements, but I was wondering if anyone from the team has ever looked at this.

I guess that this is somewhat related to bug 141097.
Comment 3 timebandit 2010-12-04 02:12:11 UTC
I was just wishing for this today. That is inside a heredoc, which is used to format an HTML string, please highlight it as if it were HTML which it really is. 

The other way to do this is to turn the php scripting off for the block and then turn it back on, but if there are a number of variable to be included then it turns into a lot of <?php echo $something ?> inside of a block. It's so much easier to use the heredoc but then we don't get the Netbeans highlighting which is so nice.
Comment 4 Ondrej Brejla 2012-04-10 12:54:46 UTC
Works for me properly in 7.2 dev.
Comment 5 tubaguy50035 2012-08-02 19:28:51 UTC
Just downloaded 7.2 today, I am not seeing any kind of syntax highlighting or auto-completion inside heredoc.
Comment 6 tubaguy50035 2012-08-02 19:35:33 UTC
Nevermind.  I was under the impression that this would work for HTML syntax.  It does work properly for PHP variables.
Comment 7 em3g 2012-10-04 14:25:56 UTC
(In reply to comment #4)
> Works for me properly in 7.2 dev.
How do you enable it for 7.2 that i downloaded. It is not working: highlighting syntax for html that is
Comment 8 marcoplpl 2015-04-14 03:24:44 UTC
I am running 8.0.2 php


Is this bug fixed ?
I cannot seem to use HEREDOC syntax to echo html in a php file
Comment 9 Ondrej Brejla 2015-04-14 07:30:17 UTC
If you have problem with something, open a new issue...do not reopen 3 years old enhancement.

And HTML syntax highlight imho never worked in PHP strings.