jEdit Community - Resources for users of the jEdit Text Editor
Archives
Search Replace Multiple Lines With Option To Ignore Whitespace
Submitted by Anonymous on Wednesday, 10 November, 2004 - 06:23
For people who get stuck doing search/replace in HTML oftentimes, what you are searching for is multiple lines of text. Also, you tend to want to replace with multiple lines of text. Here is an example:

Search:
<table width="100%">
<tr><td>
Hello World
</tr></td>
</table>

Replace:
<table width="100%" class="somestyle">
<tr><td class="hello">
Hello
</tr></td>
<tr><td class="world">
World
</tr></td>
</table>

In other words, instead of using a text field, an option to use a text area for multiple lines would be great.

Furthermore, an option to ignore whitespace differences in the the search string would be great!. For example these would both match when I searched for Hello World!:

Search Matches:
Hello Wo
rld

Search Matches:
Hello World

You could of course use a regular expression for this. However, when search/replacing large amounts of multi-line text with HTML and other weird characters, escaping all the special characters for a regular expression usage would really suck and take a long time. A simple "ignore whitespace difference" checkbox would be much nicer.

My two cents!

Mike
Template plugin: ignore more than three subsequent ##
Submitted by Anonymous on Wednesday, 10 November, 2004 - 11:16
Hi All,

I'm a Perl developer and use ########## lines to cut my code into pieces or make things more visible.

Unfortunately, the template plugin rips out these lines as they start with ## and are therefore a vm comment.

It would thus be cool to have a directive to not parse some characters.

E.g.:

#noparse=#####################################################################

Thanks,
Sven
2 questions about the configuration
Submitted by Sandal Tolk on Wednesday, 10 November, 2004 - 13:53
Hi!
I just installed jEdit and I'm configuring it at the moment.
I already found all options i wanted, expect the option to turn of this vertical blue line in the middle of the text editor window.
That it is possible to turn it of is seen here: http://jedit.org/index.php?page=screenshot&image=29 but how do I do it? I cant find the Option Sad
About C++ mode
Submitted by Anonymous on Wednesday, 10 November, 2004 - 14:49
Hello, Is it possible to make jEdit indent lines more like Emacs's cc-mode? I mean when I write something like this for example: cout << "some very long story..." and continue to next row with << someVariable << endl; Emacs indents <<-marks to same column but jEdit doesn't. In my opinion that looks bad. This is just one example and there are other cases too. I wouldn't like to change back to Emacs because of this since jEdit is so much easier to use and I like the Secure FTP option.
i can't have the '^' character, why ?
Submitted by Anonymous on Wednesday, 10 November, 2004 - 17:02
I can't use the character '^'.
For example in this case: var = truc ^ chose; When i hit the keyboard (twice, as for other editor) there is nothing.
Hangs at splash screen on XP SP2 + Sun j2sdk1.4.2_05 + jEdit 4.2
Submitted by Anonymous on Thursday, 11 November, 2004 - 01:03
Tried both generic jar and windows installers, installation went smoothly.
But jEdit hangs at splash screen when started (progress bar reaches the end).
Any idea what could be wrong?
Help with text and changing the java.home property
Submitted by bksuro on Thursday, 11 November, 2004 - 22:31
hi,

I just downloaded jEdit for editing java files, I got a message that I need to change jEdit java working directory to JDK from JRE, after some search i found the "system properties" tag and clicking on it has given me the output as follows:

-- listing properties --

http.agent=jEdit/4.2final (Java 1.4.2_06. Sun Mi...
LINES
sun.boot.library.path=C:\Program Files\Java\j2re1.4.2_06\bin
LINES
user.dir=C:\Documents and Settings\SBell...
LINES
java.endorsed.dirs=C:\Program Files\Java\j2re1.4.2_06\li...
LINES
java.library.path=C:\Program Files\Java\j2re1.4.2_06\bi...
LINES
java.class.path=C:\Documents and Settings\SBell...
LINES
java.home=C:\Program Files\Java\j2re1.4.2_06
LINES
java.ext.dirs=C:\Program Files\Java\j2re1.4.2_06\li...
sun.boot.class.path=C:\Program Files\Java\j2re1.4.2_06\li...
LINES

questions:
1.) How do I edit the information so that I change the information from jre to jdk directory?
2.) How do I see the whole line instead of "..." ?

what I did:
I want to edit the information and place in properties directory as "*.props" file as informed so that when I am typing java codes like "classname.", then I will get the listing of methods, variables like in "MS Visual Studio".

I changed the wordwrap to soft and clicked the "systems properties" and it has not changed the way the result is shown. What is the method to view the full lines without "...". Even changed the columns to 120 and same result.

any help is appreciated and thank you in advance.

bksr
How to view Javadoc without leaving jEdit
Submitted by rmsh on Thursday, 11 November, 2004 - 23:05
Hi,

I'm a newbie to jEdit and in love with it.

Does anyone know how to view Java Docs inside jEdit (probably in a new tab). Basically a simple HTML viewer. I don't know if this is possible by any plugin/macro? (I might be dumb). It is a great value add for developers.

Thanks in advance
-Ramesh
How to change JEdit toolbar icons
Submitted by Anonymous on Friday, 12 November, 2004 - 06:11
I just want to have different toolbar icons and I have done some research but didn't get anyinformation. But in screenshots i can see different toolbar icons. Can somebody tell me how to get new icons and how to change it? I am using winxp pro and have latest version of JEdit and have all the plugin available. Thank.
keyboard mapper for non ASCII characters
Submitted by Anonymous on Saturday, 13 November, 2004 - 11:11
I have to write programs with a lot of strings written in other scripts like cyrillic, japanese and so forth. I can use the input method editors of MAC, PC or Linux, but for typing IPA or the Chinese transcription Pinyin there is no input method editor.

It would be a very good to have such a user configurable plugin for jEdit. I don't know whether it is possible to write a plugin which runs between key event and text area but I guess.

sugestions:
- via plugin option you can create different key mapping tables
- you can choose your key mapping by shortcut
- the key mapping table is saved as normal utf8 file
- it should be possible not only to have a 1:1 mapping but also n:m mapping, i.e. I write e.g. 'shi' and the plugin insert the Japanese character 'shi'
- I don't know whether it is possible but it would be very nice: If I type a 'A' a popup window appears and I can choose which 'A' I want to insert the Latin, Greek, Russian, etc. if there are more thna one entry for 'A' in the mapping table.

I installed the plugin 'Accents' and I was inspired by it.

I can try to write this plugin by myself but on one hand I haven't a deep insight into the jedit classes and on the other hand I havn't enough time. But at least I would help!

Thanks in advance

Hans
jEdit creates new view for each file that is opened from Konquerer in KDE
Submitted by Anonymous on Saturday, 13 November, 2004 - 22:48
jEdit creates new view for each file that is opened from Konquerer in KDE. I think that it correctly connects to the already running jEdit server, because the existing view(s) are updated with the new file. However, I only want one view and rather use the buffer switcher. What's the point of having a jEdit server that is the only running instance of the program, if this instance starts spawning several windows? How can I achieve it to prevent jEdit from opening a new view for every new file?
Using Eclipse to develop plugins
Submitted by Anonymous on Sunday, 14 November, 2004 - 09:27
I want to use Eclipse to develop a plugin. No problem setting up an Eclipse(3.01) project running JEdit 4.2 with breakpoints etc. But now I would like to be able to debug a plugin (setting breakpoints in the plugin source), and it seems to me that is not easily possible without modifying JEdit considerably (which I would prefer no to do). JEdit appears to be designed to only run plugins from jars. Any ideas?
FTP plugin cannot save over SFTP if not owner of the file
Submitted by Anonymous on Sunday, 14 November, 2004 - 16:39
[this is a very annoying problem, and hasn't existed before...]

FTP plugin requires me to be owner of the file if saving over SFTP even in the same group.

File permissions: 775
Same group, different user, saving doesn't work, gives error:

Cannot save: java.io.IOExpection:

and nothing more...
Works only if I am the owner of the file...

Solutions, please. I cannot do work because of this Sad Need to use ssh connection + pico ...
Automatic Plugin Updates
Submitted by buffering on Sunday, 14 November, 2004 - 21:17
I think it'd be nice to have an "automatic" update feature(either built-in or through plugin) for plugin management. When the Jedit finishes loading, a message box shows up asking user if he/she would like to update their plugin automatically without going through "Plugin Management=>Update" menu everytime.

Oh yeah, it'd be even better if we could turn that auto update on and off through "Global Options" for some people can't afford to have JEdit checking for update site everytime JEdit loads.
Console plugin: default for the -classpath option
Submitted by w0073r on Monday, 15 November, 2004 - 16:46
I looked around, but couldn't find a solution. I'm on Windoze, in a computer lab, so I don't have the ability to change my classpath. How can I get the Console plugin to default the -classpath option when I compile/run Java classes to a specific string, rather than just $CLASSPATH;? So I want it to default to $CLASSPATH;;"H:\compsci\MBS\Code\mbsgui.jar";"H:\compsci\MBS\Code\mbsbb.jar". The JCompiler plugin does that, but that doesn't help for running the file. Thanks.
Console plugin: default for the -classpath option
Submitted by w0073r on Monday, 15 November, 2004 - 16:46
I looked around, but couldn't find a solution. I'm on Windoze, in a computer lab, so I don't have the ability to change my classpath. How can I get the Console plugin to default the -classpath option when I compile/run Java classes to a specific string, rather than just $CLASSPATH;? So I want it to default to $CLASSPATH;;"H:\compsci\MBS\Code\mbsgui.jar";"H:\compsci\MBS\Code\mbsbb.jar". The JCompiler plugin does that, but that doesn't help for running the file. Thanks.
JTA SSH Plugin
Submitted by Anonymous on Monday, 15 November, 2004 - 19:13
Has anyone succesfully tried that plugin, available from http://www.twdata.org/jta/?

I have, but I can't make a connection. I write host name, user name and password and it goes fine but I dont't get a connection. It doesn't show me any error messages - nothing just happens. Got ideas?

Loading and then editing a file
Submitted by AlvinD on Tuesday, 16 November, 2004 - 03:43
I have a macro which will parse and modify a list of files. It works as long as the files are preloaded. However, when I use the statement "FileBuffer = jEdit.openFile(view,FilePath+File);" The file is loaded, but it is not editable from within the macro! I can use the "iseditable" method to verify that the textarea is not editable after I open the file. I have spent much time and had no luck in finding out how to make the textarea editable after using an "openFile" statement.

I'm sure the answer is simple, but I have not found it.

Any help would be appreciated.
Modified Java Commando File ( includes 1.5 ) (javac.xml v0.01 by Mark Woodward)
Submitted by Mark Woodward on Tuesday, 16 November, 2004 - 11:34
This simply adds 1.5 as a target to the java.xml commando file. I've also made it the default and rearranged the others from most recent to oldest. Drop it in the ~/.jedit/console/commando folder and restart for it to take effect.
Vim like copy character above/ below macros (copyCharMacros.zip v0.1 by Mark Woodward)
Submitted by Mark Woodward on Tuesday, 16 November, 2004 - 12:28
Two of the features in vim I find I use often is C-Y and C-E. What these do is copy either the character above the cursor (C-Y) or below it (C-E). This is a first take on that functionality in JEdit. Eg: If the line above is; System.out.println then using Copy_Char_Above (I have it mapped to CS-Y) will copy one character from the line above to the current line. If I held CS and hit Y 6 times I'd get; System. I could then write err for eg, then hold down CS-Y to complete the line; System.err.println Helpful when you have repetitive lines that you aren't likely to ever use again so theres no point assigning an abbreviation to it.
User login
Browse archives
« November 2004 »
MoTuWeThFrSaSu
9
16
27
 
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