From Microsoft Dev Studio, it is possible to copy to clipboard selected text, and
paste it into other MS apps which recognize that particular MIME type, such as MS-Word.
This means it is possible to copy/paste colorized text.
I'm pretty sure all that is needed is to determine what is the MIME-type and mime-format
used to store colorized text from ms-dev studio and mimic it from jEdit, using the
colors from jedit's syntax.
Submitted | ezust - 2010-01-04 20:49:58 | Assigned | |
---|---|---|---|
Priority | 5 | Labels | |
Status | open | Group | None |
Resolution | None |
2010-02-18 03:23:40 ezust |
- **summary**: Copy to Clipboard: colorized text a la msdev studio --> Code2HTML: Colorize and Copy to Clipboard |
---|---|
2010-02-18 03:23:40 ezust |
It turns out the mime-type is HTML.
|
2010-02-18 03:34:02 ezust |
- **summary**: Code2HTML: Colorize and Copy to Clipboard --> Code2HTML: Colorized copy to Clipboard |
2010-02-18 03:34:02 ezust |
Something to think about: when we copy/paste from within jEdit, if we have one of
these multiple format mimedata available, it should ignore the HTML and paste the
text version back. Then the new action could be used instead of the built-in one,
as it currently works in MS Dev Studio.
|
2010-02-18 07:16:10 ezust |
OpenOffice can also be used to paste colorized text into, not just MS-office. So this
is not a microsoft-specific feature.
|
2010-02-18 08:08:04 kpouer |
I think it is done using TransferHandler and dataflavor.
|
2010-03-20 00:01:28 kpouer |
the feature is related with that one https://sourceforge.net/tracker/index.php?func=detail&aid=2973242&group_id=588&atid=350588#
|
2010-04-13 15:59:47 ezust |
- **summary**: Code2HTML: Colorized copy to Clipboard --> Colorized copy RTF to Clipboard |
2010-04-13 15:59:47 ezust |
I was mistaken, it is not copying HTML into the clipboard, it is copying RTF into
the clipboard.
|
2010-04-14 00:56:08 ezust |
RTF Specification:
|
2010-04-14 05:36:22 ezust |
Here are instructions for converting from HTML to RTF using the itext library.
|
2010-04-14 05:36:32 ezust |
- **summary**: Colorized copy RTF to Clipboard --> Colorized copy RTF to Clipboard (IText plugin?) |
2010-04-16 11:32:41 kpouer |
I have a problem here, the RTF part is an extension to iText because iText is a PDF library and I'm unable to find where I can get this RTF extension |