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 230712

Summary: mixing different languages inside the same editor
Product: editor Reporter: verydapeng
Component: -- Other --Assignee: Milutin Kristofic <mkristofic>
Status: REOPENED ---    
Severity: normal CC: kAlvaro
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description verydapeng 2013-06-04 09:55:26 UTC
Our development is extensively java and sql related, we have a lot of embedded sql strings inside the java codes

if we can bring in the SQL syntax highlighting into the java editor then it will substantially increase our dev's productivity 

borrowing the idea from <editor-fold> we can have some *magic* comments to hint the editor to switch syntax highlighting mode

for example 

String sql = /*<syntax lang='sql'>*/ "select * from user" /*</syntax>*/;

to extend the idea further, we can have embedded HTML/XML code highlighting

String html = /*<syntax lang='xml'>*/ "<div>{namePlaceHolder}</div>" /*</syntax>*/;
Comment 1 kAlvaro 2013-10-16 08:19:27 UTC
There's already code completion [1] so I guess that implementing syntax highlighting should not need any special syntax.

Comment 2 Martin Balin 2016-07-07 07:31:44 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 3 kAlvaro 2016-07-10 14:40:47 UTC
My link to "SQL Code Completion" is broken, please check

If I'm not wrong, this feature request is not implemented yet in latest development build available today (netbeans-trunk-nightly-201607100002-php-windows-x64.exe).