jEdit Community - Resources for users of the jEdit Text Editor
Copy as RTF
Submitted by weberjn on Monday, 10 December, 2012 - 15:09
Hi,

I'd like to copy a formatted source snippet from a jEdit buffer into Word keeping the format (i.e. colors). This works from Eclipse to Word, but not from jEdit which only copies just plain text.
Is there a way to make this work, or is there a plugin?

Thanks,
Juergen
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
I second Robert's suggestion:
by Graham Hannington on Tue, 22/07/2014 - 08:54
I second Robert's suggestion: use the Code2HTML plugin.

I HTMLize the current jEdit buffer (containing syntax-highlighted source), save the resulting HTML to a .html file, and then open it in Word.

Then - and this is why I'm adding this "me too" comment - I paste (or rather, "paste special") as RTF into an existing text box in PowerPoint.

That is how I get syntax-highlighted source into PowerPoint: the "secret" appears to be the combination of (a) pasting into an existing text box and (b) pasting as RTF (which is why I use Word as an intermediary, because it copies to the clipboard as RTF).

All other combinations that I have tried using to paste into PowerPoint either lose some of the formatting (such as color) or all of the formatting.

P.S. In my opinion, Lucida Console looks better than Courier New for source listings.
Code2HTML Plugin
by Robert Schwenn on Mon, 10/12/2012 - 21:04
Hi,
the Code2HTML Plugin lets You save a html file which looks in a browser as in jEdit. I tried to copy the browser's view content to Word and it worked.

Robert
User login
Browse archives
« January 2018  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
19
20
21
22
23
24
25
26
27
28
29
30
31
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
33%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1092
Syndication
file   ver   dls
German Localization light   4.4.2.1   50953
Context Free Art (*.cfdg)   0.31   41178
JBuilder scheme   .001   17004
BBEdit scheme   1.0   16604
ColdFusion scheme   1.0   16589
R Edit Mode - extensive version   0.1   14871
Advanced HTML edit mode   1.0   14048
Matlab Edit Mode   1.0   13986
jEdit XP icons   1.0   13418
XP icons for jEdit   1.1   12441