jEdit Community - Resources for users of the jEdit Text Editor
Newbie Request
Submitted by Anonymous on Monday, 19 January, 2004 - 20:43
Hi,

I'm a newbie jEdit plug-in developer and have a quick request for help/pointers for a particular effect that I'm trying to achieve. I've been designing/developing an open hypermedia system, Chimera, since 1992 and over the years Chimera has been integrated with a number of text editors including vi, emacs, MS Word, etc. and now, hopefully, jEdit! The main difficulty in integrating a text editor is figuring out how to "create anchors" that is, understanding how to ask the editor to display a piece of text in a format that indicates that an anchor/link exists within the document (using the ubiquitous format of blue, underlined text).

So, what I'm working on is a plug-in that adds a menu item to jEdit: Plugins -> Chimera -> Create Anchor

The idea is that I'll open a jEdit document, select some text, select this menu item, and the text will become formatted in blue and underlined. (The anchor will be "stored" in Chimera, I just need jEdit to do the visual formatting for me.)

So, is this possible? Is there an easy way to tell jEdit: in buffer 1, line 10, from characters 10 to 14, please format the text like this. ??

Will I have to create a subclass of "org.gjt.sp.jedit.textarea.TextAreaPainter" or is there an easier way to do this?

Any help would be appreciated! Both, here, in the forum, and/or at "kena at cs.colorado.edu".

Thanks in advance!

Ken Anderson
Assistant Professor
Dept. of Computer Science
University of Colorado, Boulder
User login
Browse archives
« November 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   101634
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300