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.
Summary: | "emulate" multi-line literals in java editors | ||
---|---|---|---|
Product: | java | Reporter: | athompson <athompson> |
Component: | Editor | Assignee: | Dusan Balek <dbalek> |
Status: | NEW --- | ||
Severity: | normal | CC: | markiewb |
Priority: | P3 | ||
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Mac OS X | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
athompson
2013-04-06 00:41:29 UTC
I should mention that there should be an easy and obvious way to switch between "presentation" mode and "literal" mode. I should mention the main driving factor for this is to make the editing of SQL/JPQL queries bearable, since they're used quite a bit these days and often get so long that you wind up putting in a great deal of effort simply editing them with all the quotes, extra spaces, and stuff you have to throw in. Think of how much more pleasant it would be to do just something like this: Query q = em.createQuery(" SELECT m FROM User u INNER JOIN u.group g INNER JOIN g.messages m INNER JOIN FETCH m.attachments WHERE u.userName = :userName AND m.subject = :subject AND u.status = :active AND g.status = :active AND m.status = :active AND m.messageStatus = :new "); So obviously, JPQL syntax highlighting and CC working with this would be a plus. Sounds like the feature "embedded languages" I've seen in IntelliJ Idea. IIRC NetBeans has also API to supported embedded languages. See the HTML support. HTML code is mixed up with CSS and JS. And every language has it's own syntax highlighting and code completion. |