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.
It would be nice to be able to copy source code from NetBeans and paste it into a presentation/rich text editor with its syntax highlighting intact. I suspect all that's needed is to support rich text as a data flavor for our clipboard. We already have print to html - it shouldn't be much more difficult.
Moving to the 'other' subcomponent.
*** Issue 149096 has been marked as a duplicate of this issue. ***
BaseKit.CopyAction simply calls JTextComponent.copy(), which does all the magic. I suspect that adding another DataFlavor would need to cooperate somehow with the implementation in JTC.copy(). > We already have print to html - it shouldn't be much more difficult. Correct. The editor generates attributed character sequence which is then used for printing (either to a file or printer).
Maybe the solution is here: http://blogs.sun.com/geertjan/entry/openoffice_netbeans_integration_from_a Would it be interesting for the NetBeans sources?
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