jEdit Community - Resources for users of the jEdit Text Editor
Archives
in Mac Snow Leopard, file not loaded into jEdit
Submitted by dushanm on Wednesday, 13 January, 2010 - 02:52
I've been using jEdit 4.3pre14 under Tiger, and it has worked fine. Very recently
I moved to Snow Leopard X.6.2, which uses Java 1.6.0_17, and installed jEdit 4.3.
It works fine except for one thing: when I 2-click on a text file (to which I've
associated jEdit.app) from any file manager - Finder, Path Finder or muCommander -
jEdit comes up, but with no file loaded. I then have to Open the desired file
separately.

Is there some setting in Preferences, or maybe in Java, that I need to configure?

Thanks for any suggestions.

- Dushan
Problem with ProjectViewer 2.9.1 with old project file path
Submitted by Jabberwock on Wednesday, 13 January, 2010 - 06:18
HI,

I have a problem with the new version of ProjectViewer and jEdit 4.3.

All my project have been moved to a new location, that is OK.

But when a launch jEdit all my project files path are weird like ftp://\\totot//toto/toto, and i can ope properly the files.
I look the xml project files with the old version of project viewer and i see that the path is like ftp://toto/toto... and with the new id ftp:\\toto\toto

There is a solution to convert old format XML to new ?

Thanks a lot.
The LONG_ENTRY element .. how to type new line in text field?
Submitted by d_l on Thursday, 14 January, 2010 - 20:48
From Commando Help ..
The LONG_ENTRY element
A LONG_ENTRY element adds a multiple line text area to the commando panel. It must be placed inside the UI element.

I can paste long word wrapped text from notepad .. such as the above text ..
But if I type text into the text field, using [enter key] as end of line, the UI window closes prematurely.
How do I type new lines into long format text field?
Portable version of jEdit for Windows
Submitted by wpp-dev on Friday, 15 January, 2010 - 22:34
Hello,

I'm a winPenPack.com developer.
winPenPack ( http://www.winpenpack.com and http://sourceforge.net/projects/winpenpack ) is a collection of open source portable programs for Windows, optimized for use with a USB pen drive or any portable device and also directly from Hard Disk.

I'd like to signal you that we have developed a portable version of jEdit for Windows, called X-jEdit, in winPenPack.com Format: http://www.winpenpack.com/main/download.php?view.840 . You have just to download the .zip archive, uncompress it and double-click on X-jEdit.exe

Obviously, any suggestion or feedback will be welcome! Smiling


______________________________________

TECHNICAL DETAILS:


1 - at X-jEdit first run, the Java Runtime Environment (JRE) is automatically downloaded and extracted in X-jEdit\Lib\Java\ folder (but only if JRE is not present in this directory). In this way anyone can use jEdit even if Java is not installed in the host pc;

2 - the "-Duser.home" parameter has been set: all settings are stored in \User\jEdit directory instead of %USERPROFILE%\.jEdit folder;

3 - all paths of recent files (if the files are saved in \Bin\, \User\, \Lib, \Documents, \Downloads or \Backups directories) are normalized when the drive letter or the software position changes;

4 - all paths included in "history", "properties", "recent.xml" and "perspective.xml" are normalized when the drive letter or the software position changes;

5 - the "backup.directory" has been set.
CodeBrowser plugin, Exuberant ctags and macosx???
Submitted by timou on Saturday, 16 January, 2010 - 08:39
Hi...

I just switch to macosx...

`Whre can I find the exuberant ctags for macos, to use with codebrowser????
I dont see the ctags to point to!!

thanks
Status bar time display problem
Submitted by rdindir on Sunday, 17 January, 2010 - 12:38
Hi,

I am new to the java environment and was trying out jedit. I have a question regarding the time in the status
bar. It displays the time in a different time zone (Pakistan time zone I believe). The Insert_Date macro
displays the date in PKT time zone and shows the same time on the status bar. It may be related to my JRE, but
am not sure.

How can I change this?

Regards,
Riza Dindir
What are these gray bars?
Submitted by keremcan on Monday, 18 January, 2010 - 02:44
Hi

I am getting these vertical gray lines in my files. I understand the function , but I would like to disable them. Does anyone know where they come from and how to disable them? They are quite distracting

Here is a screenshot from
http://shup.com/Shup/268750/_Screencaptor_1_17_2010-8_39_43-PM.png
GC out of memory with macro.
Submitted by jazminstewart on Tuesday, 19 January, 2010 - 19:29
Hi, first message here. I have been using jEdit for a short time. I've found it as a replacement for UltraEdit and coding is not my need.

Running Macros/Scripts is what I need to do from time to time to clean up files coming in different formats.

I've had many memory issues with jEdit. But this is something I can't solve. It seems to be jEdit related but I think some of you may help.

I have a 162MB text file, opening chews about >330MB (the Heap is at 2GB now)

I run this Macro (avoiding some obvious constants and declarations) (SEE BELOW)

It works fine, but the memory ramps to 2GB, stays like that for about 30 minutes until I get a message from BeanShell that GC has run out of heap memory.

As you can see, my code does not "retain" things in memory, so I don't see why it's doing that.

I've set the Autosave time to "0" and Undo to "0".




while (SearchAndReplace.find(view))
{
SearchAndReplace.setSearchString("\\d+\\.\\d+");
SearchAndReplace.find(view); //Find first number in line
strTemp = textArea.getSelectedText(); //Copy to a String
SearchAndReplace.setSearchString("\\s+.*\\s+(?=(\\d|-))");
SearchAndReplace.find(view); //Find some other numbers

textArea.backspace(); //Erase that

//Add spaces until caret gets to the column it should be
while ( (textArea.getCaretPosition()-textArea.getLineStartOffset(textArea.getCaretLine()))
< 19)
{
textArea.setSelectedText(" ");
}

textArea.setSelectedText(strTemp); //Paste the previously copied number

//Add spaces until caret gets to a specified column
while ( (textArea.getCaretPosition()-textArea.getLineStartOffset(textArea.getCaretLine()))
< 32)
{
textArea.setSelectedText(" ");
}

SearchAndReplace.setSearchString("SOME\\s+");
}


Thanks!
Considering using jEdit
Submitted by ineuw on Friday, 22 January, 2010 - 02:48
I am considering switching from TextPad 5.31 and was wondering about several features if they are available.

1. Editing macros.
2. Assigning macros to keyboard shortcuts.
3. Rectangular area selected copy and paste
4. Toggle word wrap with the keyboard.
Infoviewer external browser not working?
Submitted by wpong3@gmail.com on Friday, 22 January, 2010 - 20:35
Apologies if this is a faq, or a bug -- I don't think it is, so I'll post here (I did a search and hope I didn't miss) --

I've tried to configure Infoviewer plugin to use mozilla, but I can't seem to get it to work -- either with mozilla, or with IE. Here are the settings I'm using when trying to get mozilla to work...

Plugins > Plugin Options > Info Viewer > Choose Browser
"Use internal InfoViewer instead of HelpViewer" (I've tried with this checked *and* unchecked, no apparent difference)
"Choose Preferred Browser" > External Browser
"Configure Browser" > "External Browser Command" > C:\Program Files\Mozilla Firefox\firefox.exe (I've tried putting the path in quotes, w/o quotes, with quotes and double-slashes, no apparent difference)

I've looked at the activity log, but don't even find the word "mozilla" in the file, which suggests I'm doing something really silly, as jedit is (apparently) not even *trying* to parse my command line. What am I doing wrong?

FWIW, I'm runing wxp pro sp3. I've recently updated my j-edit install (was using 4.3 pre16, now using 4.3). I've installed the latest plugin.

Thanks all,
--wpong
Trying to use TextToolsComments in macro
Submitted by kemptenkid on Saturday, 23 January, 2010 - 00:01
I have created a macro that calls toogleRangeComments method from the TextToolsComments plugin if I have made a selection of code else i call toggleLineComments. When I execute this I get a "java.lang.IllegalMonitorStateException" exception, is there something i'm doing wrong ?


void smartComments(View view)
{
if (textArea.getSelectionCount() > 0)
{
TextToolsComments.toggleRangeComments(view);
}
else
{
TextToolsComments.toggleLineComments(view);
}
}
smartComments(view);
Column mode and encoding help!
Submitted by Advice Pro on Sunday, 24 January, 2010 - 00:31
I need to change line ending encoding in column mode which I heard is the easiest method of achieving line end encoding.
How-to: Using YUI to auto-compress/minify JavaScript
Submitted by CNSKnight on Monday, 25 January, 2010 - 17:23
Yahoo's YUICompressor is my favorite JavaScript compression/minifier utility.

I wanted to hit a button w/in JEdit and have my source javascripts run through the compressor.

I made a copy* of the Run_Script.bsh macro script and modified as follows

else if(mode.equals("javascript")) {
newpath = buffer.getPath();
if (newpath.contains(".source")) {
newpath = newpath.replace(".source", "");
myPathToYUICompressor = "/var/www/yui/yuicompressor-2.4.2/build/yuicompressor-2.4.2.jar";
execScript("YUI Compressor", "java -jar " + myPathToYUICompressor + " " + path + " -o " + newpath);
} else {
execScript("Windows Script Host", "wscript " + path);
}
}

You will of course need to have a copy of the YUI compressor and my need to edit the myPathToYUICompressor var above.
Additionally, as written, the code assumes you name your javascript sources with '.source' in the filename. Modify to '-uncompressed' or somesuch as to your practice.

*For a windows install, locate 'Run_Script.bsh' in the as-installed JEdit directory.
-Windoz: C:\Program Files\jEdit\macros\Misc\Run_Script.bsh
-LINUX: probably eg /usr/share/jedit/ (try >> whereis jedit)

Copy 'Run_Script.bsh' into your personal ~/.jedit/ directory. I did so and also renamed it to 'Run_Skript.bsh' so that all of my customized jEdit scripts are in my personal directory, hidden from jedit upgrades.

example:
w/in jedit, i am editing /path/to/my/JS/myJS.source.js

hitting the macro with the uncompressed javascript file in the buffer produces /path/to/my/JS/myJS.js as a compressed version.
Disbaling some of the Menu Items
Submitted by qooraf on Tuesday, 26 January, 2010 - 17:02
Hi,

I like to customize the jEdit in such a way that only required features are shown to users. For that i like to disable some of the features like
- Markers
- Folding
- Utilities
- Macros

Is it possible? if yes then which interface or API gives me this opportunity?

Secondly i want to pre-load some of developed plugins in such a way that user don't have to load those explicitly. I like to create an install package such that all the plugins are already part of jEdit and the user doesn't have to load those via plugin Manager. Is this possible? if yes how can i do that?

Will really appreciate if someone can help me.

Cheers
Qooraf
global variables values in XInsert plugin are blank
Submitted by d_l on Thursday, 28 January, 2010 - 13:50
I have jEdit 4.3 Java 1.6.0_17.

In the XInsert script I am trying to refer to global variables set in fields in
Options: Plugins: Xinsert

It seems that the value of the 1st global variable is lost (blank) after I enter variable name and value pair, press Apply, press O.K. and then inspect XInsert Options window again. The variable name is always retained but not the value. It is not seen by an xinsert.xml script. I have tried with and without quotations around the value.

I do ensure that I reload XInsert after each edit of the test.insert.xml file placed in /.jedit/xinsert/

I have tried closing down jEdit and restarting but still the global var value is lost.

Also in /.jedit/xinsert/ is the variables file (global variables but blank).

What takes precedence .. the global var settings in the Options pane or the variables file?

This does look like a bug but I'm not sure.
jEdit Compile and Run [JAVA]
Submitted by lurgen on Friday, 29 January, 2010 - 09:31
I'm looking for a plugin which have a feature to compile & run by pressed one button(JAVA). Like in jCreator. I have found NetRexxJe but the newest version is from 2003, and it dosen't work now. I know there is jCompile, but I want fuction - compile & run at once. I will be realy appreciated for help Eye-wink
SVNPlugin and ssh
Submitted by chumanoid on Friday, 29 January, 2010 - 15:24
Does anybody know, how to make it works with ssh protocol (ssh+svn)
regular expression, on how to match cross lines
Submitted by zhangweiwu on Sunday, 31 January, 2010 - 10:56
Hello.

By default single dot "." in jEdit do not match line break. In effect it is pretty much the same as [^\n].

When I want to match across multiple lines, I often use [^韡], which matches \n just fine. e.g. the following matches everything between Section and EndSection, it can match a few hundreds lines just fine:

Section[^韡]*EndSection

This method is "invented" by me, because my name 韡 is a really rare character that hardly used anywere, and I just need an impossible character in [^] so that I can match across lines.

I write this post to ask what is the standard way to do so, than my home-brew method.
properties dialog of ftp plugin not working
Submitted by notknow on Thursday, 4 February, 2010 - 01:31
Hi erveryone,

i'm working with jQuery for years now and i love it.

had to use the ftp.Plugin, it works as far as up- and downloads are concerned, but i can not
use The properties-dialog. I just get an java-whatever exception.

I am using jQuery 4.3.1 with on Mac OS X 10.4.11.

I need this dialog urgently, so i wasted time with trying 3 other editors - TextWrangler, the ftp connection seems to work, but the app itself is not too user friendly (no side by side windows for multiple files etc), Komodo-Edit-5.2.4 which reproducably crashes when trying to connet to a remote server with its ftp functions", Textmate (i would even have bought it - but out of the box it does not even offer the slightest support for ftp).

I'm a bit under stress and this is time killing.

Does anyone know how to get the properties dialog to work?

Or anyone who has a tip on another app than jQuery which is capable of doing what it says it does - basic ftp?

Thanks a lot.

Yes, i might use a "normal" ftp client, i might use one where i can define a standard app to open downloaded files with etc. But i cannot believe the only ftp plugin for jQuery i found is not working. And it is not hat i wanted in the first place. Do i have to pay for Zend Studio in the very end -

Had to test some applications and frameworks (php) over the last days, i'm really pissed with all of that stuff not working, sorry, i'm really...

And i'm not into Java at all, so...
regexp plugin for multiple strings search and replace
Submitted by d_l on Thursday, 4 February, 2010 - 16:18
Xsearch plugin allows regex search and replace on individual strings ..

Is there a plugin which allows series of tags to be replaced from perhaps an external file?
User login
Browse archives
« January 2010 »
MoTuWeThFrSaSu
 
1
2
4
7
8
12
20
21
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