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 - mixing different languages inside the same editor
Summary: mixing different languages inside the same editor
Status: REOPENED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-04 09:55 UTC by verydapeng
Modified: 2016-07-10 14:40 UTC (History)
1 user (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 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.

[1] https://netbeans.org/kb/docs/php/editorguide.html#cc-sql
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 https://netbeans.org/kb/74/php/editorguide.html#cc-sql

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).