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 268962

Summary: Syntax highlighting for SQL inside java strings
Product: java Reporter: Christian Lenz <chrizzly>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: CLOSED INVALID    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: PC   
OS: Other   
Issue Type: ENHANCEMENT Exception Reporter:

Description Christian Lenz 2016-11-13 14:15:22 UTC
Often you write inline SQL inside a java class. I know this is not a good practice maybe, but legacy code has this or some other codes:

String getSmth = "SELECT * FROM ...";

So in my opinion it is a must have to have Syntax highlighting AND code completion for SQL inside strings. It is much better to see errors and typos etc. IntelliJ does this too and it is very handy.


Regards

Chris
Comment 1 Christian Lenz 2016-11-13 14:15:57 UTC
I don't know how often HTML and/or XML is used is strings, but this would be also cool and handy to prevent errors. If you want I can create a new ticket for this enhancement.
Comment 2 Christian Lenz 2017-07-06 20:04:24 UTC
I will close it, because it will handled now at the JIRA board: https://issues.apache.org/jira/browse/NETBEANS-30. Please feel free to change the state of the ticket.