jEdit Community - Resources for users of the jEdit Text Editor
Archives
Grep_Buffer fix
Submitted by dougxn on Friday, 2 March, 2012 - 17:27
Not sure what the correct method for suggesting an update, but I just fixed grep_buffer on my box and thought I would share:

import java.util.regex.*;

Pattern p = null;
Matcher m = null;

String regexp = Macros.input(view, "Regular Expression");
public static final String SEP = " - ";
public static final String LF = "\n";

if(regexp == null) {
return;
} try {
p = Pattern.compile(regexp);
} catch(REException e) {
Macros.error(view, "Invalid regular expression");
return;
}

StringBuffer buf = new StringBuffer();
for(int i = 0; i < textArea.getLineCount(); i++) {
String line = textArea.getLineText(i);
m = p.matcher(line);
if (m.find()) {
buf.append(i).append(SEP).append(line).append(LF);
}
}
Beauty Plugin
Submitted by bulat on Saturday, 3 March, 2012 - 12:35
Hi! Is there Beauty Plugin manual? I can't configure it to work properly.
Question on Indenting
Submitted by ajudge on Monday, 5 March, 2012 - 06:25
Hi,
I'm trying to create an edit mode to do syntax highlighting and auto indenting for an obscure language, but I'm having trouble defining the correct XML to achieve what I want.
I would like all lines following the word Begin to be indented until the next occurrence of the word Begin. Each word Begin should be at the same indent level.

i.e.
Begin
Indent this line
Indent this line
Begin
Indent this line
Indent this line
jedit 4.5 configuration and MacOS 10.7
Submitted by urbanatb on Wednesday, 7 March, 2012 - 03:37
I just installed jedit on my MAC and had hoped to simply copy over my .jedit settings from a Linux install. I presumed that the settings on the mac would be found in ~/.jedit, but this does not seem to be the case. Any idea where the settings might be located? I'm beginning to suspect that the JRE is actually not allowing jedit to read/write the settings. Possible?
Macro for removing '\0' possible?
Submitted by labidus on Friday, 9 March, 2012 - 01:20
i got a problem by using reload with encoding from UTF-16 to UTF-8, finally I reloaded with US-ASCII

My ASCI file now have a lot of wrong character, 1/2 of the character are useless, basically I need to find the bad character
and replace them with a "" empty char, to restore the file.

I say character '\0' need to be removed but its maybe another number, but the character is lower then space, so in the editor
it seam ok but you need to move the cursor 2 times to actually change to the next character.

Anyway, what i am trying to use is that right now

SearchAndReplace.setSearchString("\\0");
SearchAndReplace.setReplaceString("");
SearchAndReplace.setBeanShellReplace(false);
SearchAndReplace.setIgnoreCase(true);
SearchAndReplace.setRegexp(true);
SearchAndReplace.find(view);
SearchAndReplace.find(view);
SearchAndReplace.replace(view);

But the character \\0 generate a javascript error

thank you, btw I really like this editor, i am using it on my mac for a game project!
Mouse Speed Halved?
Submitted by stretch6555 on Tuesday, 13 March, 2012 - 06:02
Hi,

I have this strange but really annoying problem with JEdit 4.5. Everytime a JEdit dialog box of any kind appears (for example, the Find/Replace dialog), the speed of my mouse is halved. Every time this happens, I have to go to my Windows 7 Control Panel and set the mouse speed back to its original speed (the maximum, which is what I prefer). Why is this happening? Is this a bug?
Copy on select
Submitted by rovf on Tuesday, 13 March, 2012 - 12:41
Is there a plugin which would automatically copy a selected text to the clipboard (i.e. without hitting Control-C), and insert the text using middle click of the mouse? Ideally this should work on Windows7 and MacOSX.
Whitespace plug-in in v4.5
Submitted by CJreige on Tuesday, 13 March, 2012 - 15:41
Hi everybody.

I've upgraded to version 4.5 and I've only encountered a single issue. My Whitespace plug-in does not work and I've had to uninstall it. Now it does not even install. Has anyone else come across a similar problem? Any thoughts on a possible solution?

Cheers,
CHJ
How to get a function list of a JavaScript file with jEdit's Sidekick on a Mac?
Submitted by Ton on Wednesday, 14 March, 2012 - 13:57
I have a Mac with jEdit 4.5 installed on it, including the Sidekick and the JavaScript plugin from [1]. Now when I open the Sidekick window, I can choose from two JavaScript parsers (skrul-xml-javascript and skrul-javascript).

However, none of them parses my JavaScript file (the window only shows the document name with "Not parsed" underneath it). When I open a PHP file and choose my PHPParser, it does parse the file and shows clickable PHP function names.

Does anybody know what might cause this and/or how it can be solved?

[1] http://skrul.com/blog/projects/javascript/
Buffer options - syntax highligting not preserved on reload
Submitted by Cheruvim on Thursday, 15 March, 2012 - 15:14
Hey all,

I'm not sure if this is a bug or not, so I will open up a discussion here to point it out.

It seems that if you change the buffer option, specifically, syntax highlighting and then an external program (like say svn or git) changes the physical file on the file system, jedit will ask you if you want to reload the file. When you do, the highlighting reverts back to whatever the global settings are. Shouldn't it preserve what the buffer settings are if they are meant to override the global?

To reproduce this.

1) open a file type that uses a specific syntax highlighting (like C++ or PHP)
2) change the buffer options to use a different highlighting (Java or Perl)
3) change the file outside of Jedit
4) Bring Jedit back into focus and either agree to have it reload the file (I have it set to prompt) or watch it reload (if you set it up to do so automatically [haven't tried this]) and you should see the highlighting revert back to the global options.


Thoughts?
No graphic display (window) when starting jedit - java process hangs
Submitted by rdehmel on Thursday, 15 March, 2012 - 15:57
Hi,
I have just installed jre 1.6 on my very very old Linux box. Suse LinuxEnterprise 1.0 (SLES Cool

de/jedit> java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)
de/jedit> uname -a
Linux atgws-rdl 2.4.19-64GB-SMP #1 SMP Mon Oct 21 18:48:05 UTC 2002 i686 unknown
de/jedit>

When I try to install jedet the graphic window does not popup. One of the java processes uses 100% CPU time.

Trying text mode -> Installation of jedet is OK!

Trying to start jedit same as above: No window and one of the java processes uses 100% CPU time.

All other graphic stuff is fine on the linux box.

Any idea?

PS: I love jedit, because I use it already on windows.

Ruediger
recover the path file
Submitted by maximeD on Sunday, 18 March, 2012 - 22:42
Good evening all,

I test currently to developpe a small plugin, and I'm stuck on one small point:

I would like to recover the current file path , how could I achieve that?

thank for your help
Voxspell for other language ?
Submitted by jojaba67 on Thursday, 22 March, 2012 - 19:34
Hello,

I installed Voxspell (a very old plugin but still working). Unfortunately, only english language is checked. I looked for infos on the Web but didn't find anything about that. I just saw that the dictionnary that is used is called en.spl.
My question : can I replace the en dictionnary by a french one without changing anything of the rest of the plugin (I'm not a java coder) ?
If yes, where can I find this fr dictionnary ?

Thanks in advance.
Zend framework tool command wrapper (zfToolWrapper.zip v0.1 by Tom Power)
Submitted by tp21 on Sunday, 25 March, 2012 - 10:20
Macros to wrap the zftool commands if you don't feel like typing them
jEdit 4.5.1 is out!
Submitted by Vampire on Tuesday, 27 March, 2012 - 15:51
Hi all,

I proudly present jEdit 4.5.1, the latest stable release of the 4.5 series of jEdit.

Detailed changes can as always be found in the Change Log at http://jedit.org/CHANGES45.txt
This release is a bugfix release.


Volunteers are always welcome to contribute to the future of jEdit:
http://www.jedit.org/index.php?page=devel


That being said, here is the download link:
http://www.jedit.org/index.php?page=download


FYI, merge requests for the 4.5 series (fix done, but waiting for a review) can be found at:
http://sourceforge.net/tracker/?group_id=588&atid=1235750&status=1&artgroup=2274635

Have fun with the new release.
newbie problem-Help! fonts don't work
Submitted by cristyla on Thursday, 29 March, 2012 - 13:46
Hello, I am new in using Jedit, and for some reason my Jedit doesn't like any foreign fonts-more specifically french accents, and greek. They are not displayed as they should be. Can anyone guide me on how to fix this? thanks!
Right Gutter/Column That Shows Selection Locations - Looking for it
Submitted by hurricanedavid on Thursday, 29 March, 2012 - 17:09
How do you activate the thin column that is on the right of the editing space, next to the scroll bar, that will indicate all other occurrences of the selected word? I find that invaluable.

I stumbled upon it by accident before, but my settings folder got erased and I have to start over. I don't know what it's called, or if it is a plug-in or what.
additing multiple background colours
Submitted by milindvel on Monday, 2 April, 2012 - 12:20
I am using Jedit & found it very helpful in writing c progs.
I request to add one facility.
At present Background colour of the "c" file is user changable but it is same for entire file.
I wish to have different colours (user settable) so as to identify different functions, calls,subroutines.
This is necessory especially for long length c files.

I hope it will be useful to many other programmers/developers.

-Milind Velankar
syslog-ng
Submitted by Skeeve on Saturday, 14 April, 2012 - 11:36
Hi!

I'm using jEdit for ages now die about almost everything.

Recently I got the task to configure syslog-ng but I could not find anything for jEdit which would help me. Does anybody here know of any stuff which could be usefull? Edit modes? Macros?

Many thanks in advance.
jEdit hangs on Win7 32bit
Submitted by Dominicus on Tuesday, 17 April, 2012 - 05:37
I updated jEdit from 4.4.2 to 4.5.1 on Win 7 32-bit PC, and now my environment is toast.
Upon opening, gave me an I/O error related to "Sidekick". I uninstalled 4.5, and installed 4.4.2 back.
No luck.
I can open a file with code and move the cursor around, but as soon as I update anything (i.e. add or delete a single character), jEdit hangs.
I have to kill the process from Task Manager.
Tried uninstalling either of the two version and now both installations behave exactly same...hung after first interaction.
After uninstalling a version, I reboot to install another, and the install wizard tells me it needs to close an existing version of jEdit that's running...how can this be, after I've uninstalled and rebooted?
I suspect there's a component or accessory to jEdit that both corrupted and persists even after uninstall.
any clue how I can fix my environment to successfully reinstall and start from scratch?
User login
Browse archives
« March 2012 »
MoTuWeThFrSaSu
  2
4
6
8
10
11
12
16
17
19
20
21
23
24
26
28
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   46190
Context Free Art (*.cfdg)   0.31   36749
R Edit Mode - extensive version   0.1   10974
JBuilder scheme   .001   10734
Advanced HTML edit mode   1.0   10427
BBEdit scheme   1.0   10298
Matlab Edit Mode   1.0   10295
ColdFusion scheme   1.0   10286
jEdit XP icons   1.0   9750
XP icons for jEdit   1.1   9691