jEdit Community - Resources for users of the jEdit Text Editor
Archives
Jedit with Lilypond on Suse 10.1
Submitted by marino on Wednesday, 23 August, 2006 - 17:18
Hello everyone,
me installed jEdit4.3pre6 version and lilypond-2.8.6-1 version.
many things not works.
me can launch and use Lilipond to compile file, but internal midi player, DVI and lots of features not working.
solved something installing back version of Console.
there's a mix of plugin and program versions all working together?
all seems wonderful but not working, pity!!

thank you in advance.
Open/Save dialog keyboard focus - Is this a bug?
Submitted by 2gooder on Wednesday, 23 August, 2006 - 17:22
Hey guys. I've been using jEdit for a few years and I alway use the latest development version. As of version 4.3pre5 I've noticed that when I open a Save or Open dialog (Crtl-S or Ctrl-O) the keyboard focus is no longer in the "File name:" text box.

The result of this is that I can no longer begin typing a name of a file when the dialog open. Instead I have to move to the mouse and click on the file name text box. It really slows me down when I am creating or opening lots of files.

Should I file this as a bug, or is this a new "feature"?

Thanks a lot,
Simon
linecomment //
Submitted by OBI_Ron on Wednesday, 23 August, 2006 - 20:05
Hello everyone,

I have just started using jEdit, and would like to create a new edit mode to handle Poser cr2 files. I have read thru the help docs, and am using the python.xml as a reference.

In python.xml, the following line handles comments:
PROPERTY NAME="lineComment" VALUE="#" /

So each line that begins with # is recognized as a comment line.

In a cr2 file, comment lines begin with //, and have no end of comment designation. So I tried to use the same cocept:
PROPERTY NAME="lineComment" VALUE="//" /

But I am not getting the results that I would expect. Comment lines are not recognized at all.

Can anyone shed some light on this?

Thanks for your time!
editing .wsf files
Submitted by jeisma on Thursday, 24 August, 2006 - 05:09
hi!

im trying to edit .wsf files but jedit cannot seem to syntax highlight codes with the "script language" sections.

it can aptly recognize .js files though.

i tried to change default edit mode to javascript, xml, html, but to no avail.

anyone have tips on how to go around this?

thanks!

joey
Info Viewer using Internet Explorer or Firefox under Windows
Submitted by mserero on Friday, 25 August, 2006 - 01:16
Hello,

I haven't been abble to use Internet Explorer or Firefox under Windows with Info Viewer.

I use the following command line:

start "c:\Program Files\Internet Explorer\iexplorer.exe" $u

It seems to return the content of the buffer and not the file URL. I used jedit 4.2-pre6 with Info Viewer 1.5.9.

Has anyone attempted to do the same thing?
Edit modes "FUNCTION"
Submitted by Manil on Friday, 25 August, 2006 - 02:30
Hi,

i want to know if it is possible to have something like this highlighted as a function:

a ();
b ();
aa ();
ababab();


<*MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="FALSE">(<*/MARK_PREVIOUS>

I know that this will highlight a function but with no space before (, i have code like that sometimes and i want to know if there is a way to highlight a function with n spaces before (

Thx a lot
substring error
Submitted by OBI_Ron on Saturday, 26 August, 2006 - 02:16
Hello Everyone,
I am creating a macro, using hypersearch_results_to_buffer as a starting point. I have modified the macro so far so that the path is not included. Now, I would like to strip out the line number. Using the following code:
traverseTree(javax.swing.tree.DefaultMutableTreeNode node, StringBuffer results){
if (node.getUserObject() instanceof org.gjt.sp.jedit.search.HyperSearchFileNode)
{
path = node.getUserObject().path;
match = node.getFirstChild();
while(match != null)
{
text = match.getUserObject().str;
results.append(text + "\n");
match = match.getNextSibling();

I get results like:

1770: material CabinetBase
1792: material CabinetBase_Panel_01.jpg.001

So I try to modify the block to:

text = match.getUserObject().str;
myStrLoc = (text.indexOf(":")+1);
text = text.subString(myStrLoc);
results.append(text + "\n");
match = match.getNextSibling();
However, every time I try to run the macro, I get the following error:

Sourced file: C:\Program Files\jEdit\macros\Misc\HyperSearch_Results_to_Buffer2.bsh : Error in method invocation: Method subString( int ) not found in class'java.lang.String' : at Line: 37 : in file: C:\Program Files\jEdit\macros\Misc\HyperSearch_Results_to_Buffer2.bsh : text .subString ( myStrLoc )

Called from method: writeHypersearchResultsToBuffer : at Line: 81 : in file: C:\Program Files\jEdit\macros\Misc\HyperSearch_Results_to_Buffer2.bsh : writeHypersearchResultsToBuffer ( view )

I have tried using text = text.subString(1); and text = text.subString(1,8);
...but I get the same results.
What am I missing?? Thanks in advance for your help!!
TaskList plugin:How make it work with text-files?
Submitted by mabra on Saturday, 26 August, 2006 - 18:21
Hi All!

I just wished to use the TaskList with some simple "Notes" files, with "*.txt" extension, but I cannot get it working. My Task's settings normally work with all my other file-types. I recognized, that text-files were not checked in the MODEs settings and I checked it. I also tried to re-start JEdit.

Nothing seems to help. Are there known issues or do I have possibly overseen somethink?

Any help is very welcomed!

Best regards,
Manfred
Including plug-ins in install
Submitted by adxp on Monday, 28 August, 2006 - 03:29
Hey,

I've customised a few pre-existing jEdit plug-ins, and I'd like to distribute them within my organisation by having the installer copy them to the plug-in directory automatically. Is there any easy way of accomplishing this? Also, in a similar vein, is there any good way of defining default perspective.xml settings?

Cheers, -adxp
Regular Expressions in 4.3pre6
Submitted by zodiac_hh on Monday, 28 August, 2006 - 07:46
Hi,

the regular expressions search and replace doesn't work here in version 4.3pre6 (fresh install). It doesn't match the specified regexp and it produces 100% cpu loads. For eample I often have to add ; to EOLs for SQL generation. So I use $ as the search term and ; as replacement string. It doesn't match anywhere, although there are 20 lines of ASCII, and it takes a minute or so to complete, using all of the CPU. Other regexp I tried also don't match. I had to switch back to 4.3pre4; here everything works fine. Is this related to the replacement of the regexp engine?

André
java.lang.RuntimeException: Invalid screen line count: 0
Submitted by oimara475 on Tuesday, 29 August, 2006 - 20:16
Hi,

I am trying to run a very simple macro, which should find duplicated lines and delete the second one.


textArea.goToBufferStart(false);
SearchAndReplace.setSearchString("(^  LK-\\d+)(.+$\\n)([\\w\\W]*?)(^  LK-\\d+)\\2");
SearchAndReplace.setAutoWrapAround(true);
SearchAndReplace.setReverseSearch(false);
SearchAndReplace.setIgnoreCase(false);
SearchAndReplace.setRegexp(true);
SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
SearchAndReplace.setReplaceString("$1$2$3");
SearchAndReplace.setBeanShellReplace(false);
while (SearchAndReplace.find(view) == true)
{
textArea.goToBufferStart(false);
SearchAndReplace.replaceAll(view);
}


While the macro is executing, the following error occurs, several times.

java.lang.RuntimeException: Invalid screen line count: 0
at org.gjt.sp.jedit.textarea.DisplayManager.getScreenLineCount(DisplayManager.java:187)
at org.gjt.sp.jedit.textarea.FirstLine.physDown(FirstLine.java:167)
at org.gjt.sp.jedit.textarea.DisplayManager.setFirstPhysicalLine(DisplayManager.java:621)
at org.gjt.sp.jedit.textarea.JEditTextArea.setFirstPhysicalLine(JEditTextArea.java:545)
at org.gjt.sp.jedit.textarea.JEditTextArea.scrollTo(JEditTextArea.java:767)
at org.gjt.sp.jedit.textarea.JEditTextArea.scrollTo(JEditTextArea.java:673)
at org.gjt.sp.jedit.search.SearchAndReplace.find(SearchAndReplace.java:641)
at org.gjt.sp.jedit.search.SearchAndReplace.find(SearchAndReplace.java:498)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
(...)

The same problem with this macro:

textArea.goToBufferStart(false);
SearchAndReplace.setSearchString("^(  LK-)(\\d+)");
SearchAndReplace.setAutoWrapAround(false);
SearchAndReplace.setReverseSearch(false);
SearchAndReplace.setIgnoreCase(false);
SearchAndReplace.setRegexp(true);
SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
SearchAndReplace.setBeanShellReplace(true);
SearchAndReplace.setReplaceString("_1 + (textArea.getSelectionStartLine() - 2)");

var n = textArea.getLineCount();
for (i = 0; i <= n - 2; i++)
{
SearchAndReplace.find(view);
SearchAndReplace.replace(view);
}

Has anybody got a hint, what the problem might be?

Martin
How to import the current date from two or three days ago?
Submitted by SCJ on Tuesday, 29 August, 2006 - 22:41
Can anyone help me write a macro that will import the date from one, two or three days ago.

Example- On August, 29th, 2006 the macro would generate the following text into a document:

Posted from: 08/26/06

I'm also wondering how to create a simple macro to create bold tags around a selected group of text? I thought this would be simple to find. Perhaps I am just looking in the wrong place? Any help is much appreciated. Thanks!
Can I compare 2 files in jEdit?
Submitted by higgledy on Thursday, 31 August, 2006 - 11:49
I would like to compare two script files, like this version with previous version, through GUI. Can jEdit do this?

I searched the forums but could not find a similar question, so I posted one.
jEdit on Dual Boot WinXP FC5 system
Submitted by khala on Thursday, 31 August, 2006 - 17:36
Hi I decided to "save space" and run just one installation of jEdit on my dual boot system. I have a shared fat32 drive that is writable from both OSs. So I installed jEdit 4.2 (java version) from XP on that drive. Now when I try to run jEdit from fedora I see the splash screen and then those errors come up on the console. Does anybody know what should I do to get it running on FC5 without having to do a seperate install? Thanks


java -jar "/media/DATA/Programs/jEdit 4.2/jedit.jar"

(.:3515): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text ()
[error] AWT-EventQueue-4: java.lang.InternalError: Pango: Invalid UTF-8 string p assed to pango_layout_set_text()
[error] AWT-EventQueue-4: at java.la
[error] AWT-EventQueue-4: ng.reflect.Constructor.newInstance(libgcj.so.7)
[error] AWT-EventQueue-4: at gnu.java.awt.peer.gtk.GdkFontPeer.getTextMetri
[error] AWT-EventQueue-4: cs(lib-gnu-java-awt-peer-gtk.so.7)
[error] AWT-EventQueue-4: at gnu.java.awt.peer.gtk.GdkFontMetrics.stringWidth (lib-gnu-ja
[error] AWT-EventQueue-4: va-awt-peer-gtk.so.7)
[error] AWT-EventQueue-4: at gnu.java.awt.peer.gtk.GdkFontMetrics.charWidth(l ib-gnu-java-awt-peer-gtk
[error] AWT-EventQueue-4: .so.7)
[error] AWT-EventQueue-4: at java.awt.FontMetrics.getWidths(libgcj.so.7)
[error] AWT-EventQueue-4: at org.gjt.sp.jedit.textarea.TextAreaPai
[error] AWT-EventQueue-4: nter.getCharWidth(TextAreaPainter.java:879)
[error] AWT-EventQueue-4: at org.gjt.sp.jedit.textarea.TextAreaPainter.setSty le
[error] AWT-EventQueue-4: s(TextAreaPainter.java:218)
[error] AWT-EventQueue-4: at org.gjt.sp.jedit.EditPane.propertiesChanged(Edit Pane.java:455)
[error] AWT-EventQueue-4:
[error] AWT-EventQueue-4: at org.gjt.sp.jedit.EditPane.(EditPane.java:360)
[error] AWT-EventQueue-4: at org.gjt.sp.jedit.View.createEditPane(Vi
[error] AWT-EventQueue-4: ew.java:1547)
[error] AWT-EventQueue-4: at org.gjt.sp.jedit.View.restoreSplitConfig(View.ja va:1393)
[error] AWT-EventQueue-4: at org.gjt.sp.jedit.
[error] AWT-EventQueue-4: View.(View.java:1197)
[error] AWT-EventQueue-4: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2141)
[error] AWT-EventQueue-4: at org.gjt.sp.j
[error] AWT-EventQueue-4: edit.jEdit.newView(jEdit.java:2117)
[error] AWT-EventQueue-4: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2097)
[error] AWT-EventQueue-4: at org.
[error] AWT-EventQueue-4: gjt.sp.jedit.jEdit$5.run(jEdit.java:3455)
[error] AWT-EventQueue-4: at java.awt.event.InvocationEvent.dispatch(libgcj.s o.7)
[error] AWT-EventQueue-4: at java.awt.EventQueue.dispatchEvent(libgcj.so.7)
[error] AWT-EventQueue-4: at java.awt.EventDispatchThread.run(libgcj.
[error] AWT-EventQueue-4: so.7)
*** glibc detected *** java: double free or corruption (!prev): 0x080f4968 ***
======= Backtrace: =========
/lib/libc.so.6[0x445f18]
/lib/libc.so.6(__libc_free+0x78)[0x4493ef]
/usr/lib/libglib-2.0.so.0(g_free+0x31)[0xb6b335a1]
/usr/lib/lib-gnu-java-awt-peer-gtk.so.7(Java_gnu_java_awt_peer_gtk_GdkFontPeer_g etGlyphVector+0x3ab)[0xb6c03d3b]
/usr/lib/lib-gnu-java-awt-peer-gtk.so.7(_ZN3gnu4java3awt4peer3gtk11GdkFontPeer14
getGlyphVectorEPN4java4lang6StringEPNS5_3awt4FontEPNS9_4font17FontRenderContextE +0x85)[0xb6bf23c5]
======= Memory map: ========
00001000-00356000 rwxp 00001000 00:00 0
003b8000-003bc000 r-xp 00000000 fd:00 1396206 /usr/lib/libgthread-2.0.so.0.10 00.3
.........................................................................................
............... etc
Aborted
Problems with jEdit / Synaptic
Submitted by antzmg on Saturday, 2 September, 2006 - 12:53
I installed rencentlly jEdit, the last debian package.
Maybe, I installed the package wronged? I have Ubuntu 6.06.
I receive the message (in Synaptic):

Unknown Error: exceptions.SystemError (E: The package jedit needs to be reintalled, but I can't find an archive for it)

Can you help me, please?
JVM not finding main class
Submitted by KBKarma on Saturday, 2 September, 2006 - 15:45
I downloaded and installed jEdit 4.3pre6 onto my PC. It's a Win XP Pro with SP2. I've been running jEdit 4.3pre5 on it for several months without a problem.

I selected to install it to jEdit, having moved the 4.3pre5 files to another folder, then installed. When it was done, I started it up manually. A JVM dialog box appeared and stated that "Main class not found."

I checked the path and found that it was still correct. I made a gif animation showing what happens. Sorry for the size, didn't get a chance to scale it down.

It's here.

Thanks for the assistance.
Is there a way to start appletviewer the Way Commando can start javac?
Submitted by cct on Saturday, 2 September, 2006 - 22:54
I'm a newbie, and found how to install the Command Plug in and adapt the tool bar so I can comple and execute applications, but couldn't find out (or figure out) how to make a nice button to click to startup appletviewer to lauch an Applet...
Problem instaling jedit on UBUNTU 6.0.6
Submitted by ziby on Sunday, 3 September, 2006 - 17:11
I have a problem to install jedit:
After running sudo apt-get upgrade I am getting the following error:

ubuntu@ahome:/$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
E: The package jedit needs to be reinstalled, but I can't find an archive for it.

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

When trying to install new application I am getting the following errors:

sudo apt-get install gkrellm
Reading package lists... Done
Building dependency tree... Done
E: The package jedit needs to be reinstalled, but I can't find an archive for it.





wget -c http://optusnet.dl.sourceforge.net/sourceforge/jedit/jedit_4.3pre6_all.deb
--13:24:47-- http://optusnet.dl.sourceforge.net/sourceforge/jedit/jedit_4.3pre6_all.deb
=> `jedit_4.3pre6_all.deb'
Resolving optusnet.dl.sourceforge.net... 211.29.132.142
Connecting to optusnet.dl.sourceforge.net|211.29.132.142|:80... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

The file is already fully retrieved; nothing to do.

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

sudo dpkg -i jedit_4.3pre6_all.deb
(Reading database ...

dpkg: serious warning: files list file for package `jedit' missing, as suming package has no files currently installed.
76809 files and directories currently installed.)
Preparing to replace jedit 4:04.03.06.00 (using jedit_4.3pre6_all.deb) ...
Unpacking replacement jedit ...
dpkg: error processing jedit_4.3pre6_all.deb (--install):
unable to create `./usr/lib/menu/jedit': No such file or directory
dpkg (subprocess): unable to execute new post-removal script: No such file or directory
dpkg: error while cleaning up:
subprocess post-removal script returned error exit status 2
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
jedit_4.3pre6_all.deb


I tried everything what I found on the net but no success

Help would be appreciated

Ziby
plugin manager fails
Submitted by thorby on Friday, 8 September, 2006 - 19:21
I'm new to jEdit. Downloaded the Mac OSX version to a MacPro (intel) with the latest operating system & java.

The editor comes up and opens a file just fine. But when I ask the Plug-In Manager to install the XML plug-in, it **instantly** displays three identical error messages (one per plug-in, I suppose). The message says "An I/O Error Occurred (Connection Refused)"

I am connected to the internet (I just completed the jEdit download) so -- what's its problem??
I can't see anything when I start jEdit
Submitted by dohidied on Tuesday, 12 September, 2006 - 19:36
I'm trying to use jEdit on OS X and after I installed I opened it and I couldn't see any text on the splash screen. I don't know if I can post a picture, but here's a link:

http://student.santarosa.edu/~plinkous/jedit.jpg

My software is all up to date, so I should have to proper Java software.

Thanks for any help.
User login
Browse archives
« August 2006 »
MoTuWeThFrSaSu
 
4
8
13
19
20
22
27
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   108250
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