jEdit Community - Resources for users of the jEdit Text Editor
Archives
Java error with OS X
Submitted by Anonymous on Saturday, 2 October, 2004 - 19:23
Hi,

I installed jEdit on my Mac running OS X (10.2.6). When I launch jEdit, I get an error message that says, "Mac OS plugin requires newer version of Java (MRJ 99)." I have the very latest update of Java from Apple installed on my computer, though, so I don't know why it says that. Any help would be greatly appreciated.

Thank you,
Sally
antialiasing GUI
Submitted by Anonymous on Sunday, 3 October, 2004 - 03:52
I just learned that Java v1.5 has a command line switch to force font antialiasing :
-Dswing.aatext=true

I tried it with jEdit 4.2 final on Win2K and it works!
Extremly slow I/O over VPN
Submitted by Anonymous on Sunday, 3 October, 2004 - 17:26
Hi,
I have this problem with jEdit. I'm using it to edit files on SMB mapped disk over VPN. The link speed is 128/16KBs. The problem is that all I/O operations are extremly slow in jEdit. Browsing directory with 30 files takes about minute to finish (with explorer it takes about 1 sec). Saving buffers behaves even stranger. Sometimes it takes 1-2 secs and sometimes even 1 minute to save 10-20KB large buffer (with other editors it takes always cca 2-3secs). Also when I switch to jEdit it takes cca 1-2secs to draw it's window (but this time is stable) and switching between buffers is quick as normal.


Can anyone explain me this strange behaviour? I've tested JRE 1.5.0 and 1.4.1, jEdits 4.2final and 3.2.

Radek
Jedit4.0 (not jEdit 4.0)
Submitted by Anonymous on Monday, 4 October, 2004 - 00:54
Found another jedit. Hmm, even the most recent version numbers are pretty close. Although I get a feeling that this one is more of a "Japanese edit" rather than "Java edit." What are the possible ramifications of this? Would a worm hole in the spacetime continuum appear that connects us to a parallel universe (haven't seen back to the future in a while)...??
Odd coding style support?
Submitted by Langman on Monday, 4 October, 2004 - 18:08
Hi,

I just started working on a new project that is using a very unique (read: I hate it) codeing style..

Any idea how I can modify the cplusplus.xlm so that it is more friendly to this style???

int x(int i)
...{
...switch(i)
......{
......case 1:
.........return 10;
......}
...return i;
...}

(ignore the dots. They were needed to maintain the structure)

Note that the body code and the {} line up, which is different from the so called "GNU coding style". I got it working so that the '{' is indented correctly but I can't seem to prevent jEdit from indenting again for the line following the '{'. Also, I can't see how I can tell jEdit to reduce the indent level for lines following a '}'..

Any help would be much appreciated.
Proper Case
Submitted by jpbroome on Tuesday, 5 October, 2004 - 20:41
Anyone have a macro or know of a plugin that handles more Text Case options than just UPPERCASE or lowercase? Specifically, I'm looking for "Proper Case" or "Capitalized", where every first letter in a selection is capitalized.

Here's a spiffy javascript function that does it. Anyone have a jEdit equivalent?

function toTitleJscript(str) {
return str.replace(/(s[a-z])/g,function (match) { return
match.toUpperCase() });

Thanks in advance
Allow multiple docked views for one plug in
Submitted by Anonymous on Tuesday, 5 October, 2004 - 21:49
As I understand, jEdit allows one Option Pane per plugin as evident in the dock position assignment screen.

It would be very cool to have multiple views for one plugin.

Example:
A CVS plugin could have these views
1. "CVS Repositories" - contains the list of repositories with checkout function
2. "CVS Resource History" - contains revision change details
3. "Synchronization" - list of files that are changed locally or remotely
Select RegExp HyperSearch Matches (Select_HyperSearch_Matches_RegExp.bsh v1.0 by Jakub Holy)
Submitted by malyvelky on Thursday, 7 October, 2004 - 07:41
A Beanshell macro script for the jEdit text editor - selects all matches for the last HyperSearch in the current EditPane. Contrary to the original macro that selects the whole line containing (the start of) a match, this one sets the selection exactly from the beginning of the match to its end thus possibly spanning across multiple lines. Thanks to this it's well suitable for regular expression search.
JEdit42final: Scrolling seems to hang
Submitted by Hans_Bauer on Thursday, 7 October, 2004 - 11:11
Few days ago i installed a new pc with WinXP, Java 1.5.0 and JEdit42final. Scrolling is nearly impossible even for small text files (< 200 lines). JEdit seems to hang for several seconds before stumpling some lines.

Does anyone have the same problem and knows a solution or could give some tips?
Thank you all.
Is there any way to count the number of times a character occurs in a selection?
Submitted by Anonymous on Thursday, 7 October, 2004 - 15:05
Title sums up my quesiton. I try Search and Replace and when I enter the character in the Search field and click find it ALWAYS says there is only one occurrence when I can plainly see several.

I also do not see anything in the text tools plugin or other standard JEdit functionality.

Seems like a pretty simple task. Am I missing something here?
PHP getter/setter macro
Submitted by stavros on Thursday, 7 October, 2004 - 16:53
Hey Folks. Over the weekend I started working on a new project and was laying the infrastructure/groundwork out for everything .. doing up the class libs and what not .. I used DB_DataObject a lot in the past to generate my db class object code, but I decided to use my own rolled DbObject class and found myself writting millions of getters/setters for my class files.
Anyway, I got bored of that and found a macro someone wrote (and is posted somewhere on the site) which generates getters/setters for a c or java file and figured, what the heck, let's tweak that for php.

So I did ... and have it working for me somehow ok .. you just highlite the vars, run the macro and it whips them out, you can even select to use javadoc style comments or not.
The original author did a great job, kudos to him/her, wherever they are ... if anyone is interested in using this hacked-for-php version, I can post it somewhere here .. there are a few idiosincrosies I guess that make it work the way I work, but it's a start at least. For instance, for some reason I my db variables/columns use_this_approach to var naming ... when I code, I use studlyCaps, so my class files look like this.

class Something {
    protected $first_var; // <-- this is how it's named in the db

    // and the getter/setter for that looks like
    // {{{ Getters

    /**
     * javadoc
     */
    public function getFirstVar($first_var) {
          $this->first_var = $first_var;
    }

    // }}} End Getters

    // {{{ Setters
    
    /**
     * javadoc
     */
    public function getFirstVar() {
          return $this->first_var;
    } 

    // }}} End setters

} // class



hah ... interesting, eh? Don't know why I do that, but anyway ... that's how "my" .bsh macro does the getters/setters, but you can hack it pretty easily to work like you do (in a php4 style too, if necessary)... there's more work to be done to make the macro more helpful/slick but if anyone might find it helpful for now, I'll throw her up somewhere ...
-steve
Executing java programs from jedit?
Submitted by Anonymous on Thursday, 7 October, 2004 - 21:29
hi. Just started Jedit. I have used textpad earlier and in it i could launch my program directly from textpad. When i used the "run program" button in textpad a command prompt opened with the output of the program. How can i do that in textpad? Is it possible? I have seen the run button in the console but nothing happens.

Hope someone can answer me
LaTeX math symbols for XInsert (LaTeX_math_symbols.insert.xml v0.1 by rikal)
Submitted by rikal on Friday, 8 October, 2004 - 12:52
This is a list of LaTeX math symbols for the XInsert plugin. You need to specify a Unicode font for the GUI (it should work with the standard Dialog font provided with Java, Lucida Sans). If you use Java 1.5, you can enable autoaliasing by using the -Dswing.aatext=true option in your jEdit startup script. For the present it only covers standard LaTeX math symbols, but AMS symbols, IPA characters and dingbats will come soon.
I/O Error updating plugin mirrors.
Submitted by Anonymous on Friday, 8 October, 2004 - 19:55
Hello,

I've just installed jEdit 4.2final on Win2K sp4 with J2SE 5.0. I'm trying to update the list of mirrors, but I keep getting the message "An I/O error occurred (java.net.ConnectException: ConnectionRefused: connect)". Any help would be greatly appreciated.
Help With Configuring Editing Interface
Submitted by berzerk on Saturday, 9 October, 2004 - 00:51
I have looked all over for this and cannot find what I'm looking for or really what to ask for. In the screenshots section, Robert Fletcher's image, the editor does not have the "." at the end of every line and appears to have the ">>" at each tab indent. I would like to know how to configure these changes. Thanks.
Customizing HyperSearch window behaviour
Submitted by seani on Monday, 11 October, 2004 - 22:21
I use a simple macro (bound to ALT-F) that calls up the HyperSearch window with a regex of ^function, the idea being to get a list of functions in a JavaScript file and skip to the required one.

This works fine, except I'd like the window to close as soon as I select the appropriate entry with ENTER.

Is there a way to achieve this?
[FAQ Candidate]: Can I modify the classpath of a macro?
Submitted by Anonymous on Tuesday, 12 October, 2004 - 10:53
Hi all,

Can I modify the classpath of a macro?
It seems that my question have to be inserted in jEdit FAQ.

------------- References from previous discussions Smiling

[1] Using external java libraries in macros 1 05/01/2004 - 6:38am
by AndreJRenard 05/03/2004 - 8:30am
by Brad Mace

[2] How do I modify the classpath of a macro? 0 04/09/2004 - 4:09am
by Anonymous

-------------

The only solution suggested in previous discussions by Brad
was to put my jars into jEdit folder.
That's good, but not too handy. BeanShell's addClassPath() command was
much better.

Currently I have my classes compiled in Eclipse workbench and can play
with them from BeanShell script as much as I like. I run my BeanShell scripts
from command-line currently and I hoped that jEdit's BeanShell Console can be
a better tool.

Changing class in Eclipse is enough for script. But if I had to create jar,
put it into jEdit folder and restart jEdit to catch the changes, it makes it
useless.

My suggestion is to reflect this behaviour in jEdit FAQ.

Best regards,
Egor Abramovich
egor_abramovich@mail.ru
third button paste under linux
Submitted by Anonymous on Tuesday, 12 October, 2004 - 16:09
I'm really disappointed, I'm just discovering this fantastic tool and the third button paste wont do anything !

(I mean by that when you select some text in a console for example and click the third button anywhere else: it pastes usually the selection.) Everywhere but not on jedit.

thanks
jobano@linux-fan.com
Whitespace plugin doesnt work in 4.2final
Submitted by pachanga on Wednesday, 13 October, 2004 - 05:58
First of all jEdit is a great stuff and i'm very impressed with it! I sent to trash my ultraedit Smiling

Whitespace plugin doesn't seem to be working properly in 4.2final. It simply doesn't show anything Sad I tried modified unofficial version of this plugin(this topic arose here already) and to no avail...

Can someone help me please?
Jedit 4.2 on Debian
Submitted by JLuca on Wednesday, 13 October, 2004 - 07:59
Hi all,
I am an enthusiastic jedit user, I use since a long time the version 4.1 on a Debian Sid. If I am not wrong I downloaded it as a .deb, and I had several problems with it (I must use the blackdawn jre to run it, apt-getted as well...). With the 4.2 I've big problems: it works just if I launch it as root, and this is not so pleasant... Please, let me know if I can fix it in some way (it's maybe obvious, but I don't have time to look for the solution of the problem...).
Btw, jedit is great, and I would like to go on in using it, instead than to pass at Eclipse...
Give me some advice Smiling
Regards,
L.
User login
Browse archives
« October 2004 »
MoTuWeThFrSaSu
 
6
10
17
22
26
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   108249
Context Free Art (*.cfdg)   0.31   46071
BBEdit scheme   1.0   18607
JBuilder scheme   .001   18508
ColdFusion scheme   1.0   18041
R Edit Mode - extensive version   0.1   17488
Advanced HTML edit mode   1.0   16222
Matlab Edit Mode   1.0   16086
jEdit XP icons   1.0   15245
XP icons for jEdit   1.1   14309