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 262487

Summary: Please add mime type selection for "edit data" in cell
Product: db Reporter: Christian Lenz <chrizzly>
Component: SQL EditorAssignee: Libor Fischmeistr <lfischmeistr>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Other   
Issue Type: ENHANCEMENT Exception Reporter:

Description Christian Lenz 2016-06-20 09:07:11 UTC
In my case, I have a minified css inside a cell, the column called generatedCss. When I double click on the cell, I got the option to "Edit data" which is nice, BUT we have no syntax highlighting, no formatting option, no line numbers etc. So of course it is not possible to get the mime type from the text, because it could be anything, from normal text to whatever. But what could be possible is to integrate the JEditPane with the option to set the mimetype or language (JS, CSS, HTML, Java, etc.) so if you edit data, the popup comes up and you should have a select box to set the language/mime-type for this editor to use everything what you already use in the normal editor. That would make the edit data thing really nice and handy and more fun. For now, I have to copied the text into a new dummy file which I created and format the code, change what I need, and copied back to the cell, this is a pain in the ass.


Cheers

Chris