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 - Syntax highlighting for SQL inside java strings
Summary: Syntax highlighting for SQL inside java strings
Status: CLOSED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: PC Other
: P3 normal with 3 votes (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-13 14:15 UTC by Christian Lenz
Modified: 2017-07-06 20:04 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 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.