jEdit Community - Resources for users of the jEdit Text Editor
swap to java.util.regex?
Submitted by farmerBri on Tuesday, 27 June, 2006 - 06:27
First off - long time user, first time poster - I love jEdit, have converted most of my co-developers to jEdit devotees in the last couple of years (it's suprisingly easy to push jEdit considering how close text-editor choice is to religion amongst developers)

So, yeah - jEdit uses gnu.regexp rather than the java default java.util.regex for reasons I don't yet understand... I'm hoping some kind soul will enlighten me.
I'm particularly missing lookbehinds, both negative and positive, but after a quick comparison of the gnu.regexp documentation with java.util.regex there is also lots of other useful things:
  • \p{Punct} -- Punctuation: One of !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
  • \P{InGreek} -- Any character except one in the Greek block (negation)
  • [a-z&&[^bc]] -- a through z, except for b and c: [ad-z] (subtraction)
  • X?+ -- X, once or not at all (Possessive quantifiers)
  • (?idmsux-idmsux:X) -- X, as a non-capturing group with the given flags on - off
I can't see anything in gnu.regexp that is not available in java.util.regex. So java.util.regex is more powerful (in terms of options) and I also often use the search in jEdit for conveniently testing my regexes before using in a java app, so it would be beneficial to say the least if they both spoke the same syntax Sticking out tongue

In summary - is it possible / feasible for me to swap the default regexp implementation to java.util.regex? I'm willing to get my hands dirty, but some pointers would be greatly appreciated.

cheers all.
hail jEdit.
"stackable" panes?
Submitted by sethrasmussen on Friday, 23 June, 2006 - 20:29
Can you have, say, two right-docked panes open at the same time, stacked on top of each other?

I haven't seen anything intuitive or obvious pointing to that, if so.. if not, I think that's a reasonable feature request. Has this been discussed? It's not a big deal ultimately, but it would be useful at times.
where do I put an editor scheme file?
Submitted by localshredder on Friday, 23 June, 2006 - 04:50
Where in the world do I put my scheme file once i've downloaded it. I can't be this stupid...
how to 'search & replace' with a simple calculation???
Submitted by NickRivers on Wednesday, 21 June, 2006 - 12:17
Hi!

I'm trying to search a file with reg-expression '\d' and I want to replace the values with a BeanShell snippet which adds a value to the search-string. When I try something like '_0+1' for a line in my file which looks like 'array[1]' I get an 'array[11]' an not what I want, an 'array[2]'.

What I'm doing wrong?

Thank You
selecting a line of text with a left mouse click
Submitted by stellari on Monday, 19 June, 2006 - 19:08
I have noticed that if click after the end of a line (basically to move the insertion cursor to that line), spaces are added to allow the cursosr to reach that column. Is there an option to disable this and have jEdit place to cursor at the end of the current line text?

Using jEdit 4.3pre4

Thanks,

Franco
Does jedit support "code file includes"?
Submitted by motionmountain on Saturday, 17 June, 2006 - 13:28
I am thinking about switching to jedit for editing html.

There is one feature I need: the ability to put code parts in separate files,
which are then included in the final html files, thus avoidiung the need to
edit 10s of files for the same change.

Is this possible in jedit? how is the feature called?

mm
Auto Pairs {}()[]
Submitted by thinsoldier on Friday, 16 June, 2006 - 01:55
is there a plug in that makes it so any time i type in one paired character it will automatically close it
< >
{ }
[ ]
( )

No I don't need somthing to automatically close html tags! Just these characters.
Reproducing Basic BBEdit Features
Submitted by thinsoldier on Friday, 16 June, 2006 - 01:46
Lets try this again Sad

I've been desperately trying to find a GOOD text editor that will run in windows for many months now. I tried jedit some time last year and after trying many MANY apps over the last two months I'm back to jEdit. It is in may ways a bit better than the rest but there are still a few features that are either not there or I can't seem to find. Not having these features makes trying to work outside of BBEdit a time consuming nightmare for me.
Maybe someone here can help me find them or let me know they don't exist in jedit.


#1 \r and \t

Lets say I have a number of spaces that I want to turn into tabs. 
In bbedit I can represent a tab character with \t. Find my spaces. Replace with \t\t.
It's similar with new lines. Find all \r\r and replace with just one \r until the number of empty lines is to my liking.

Yes I know theres a macro that will convert all spaces to tabs and vice versa. But what if I don't wan that to happen to the entire file, what if I have a specific reason to have a certain number of spaces or a certain number of tabs and it's only important to section of the file and not the whole thing.

so is there a character i can put into jedits find/replace that will match the newline character? or tab character instead of literally pressing tab then copying and pasting!?!?



#2 (?s) multiple line regular expressions
For example:
<p>doodie</p>

<p>
mulligan
</p>

<p> piggums </p>

This expression: <p>.*?</p> will match the doodie and piggums paragraphs...but not mulligan.
In some programming languages and other applications like BBEdit I can specify flags that modify the way regular expressions work. If start my expression with (?s) it will make the expression match all three. This comes in very very handy for me all the bloody time.



#3 - multiple line search text fields
Example: lets say I need to batch find/replace the following over many files
$user='something';
$pass='else';
But other parts of many files have variables named $user and $pass.
I do know for sure that the original programmer always has just these two lines one after the other and other usage of $user and $pass tend to be mixed in with other code or have something betwen them.

if I could past both lines into the search box it would greatly reduce the chances of matching something I don't want it to match.
Actually if I could just use \r to indicate a new line in the single line text field that would be just as good.


Even with many months (off and on) of jEdit use under my belt I still spent over 20 minutes the other night cleaning up 1 afwul html file that was sent to me and long before finishing I gave up. It was easier to wait until I got to work and clean up all 4 of them in under 10 minutes using BBEDIT and the very simple features I described above.

Yes I know i could have used jtidy but I have very strong preferences as to how I want MY html files to look which make them EASIEST for ME to read. Jtidy doesn't do ME.
It always ads the html, head, body etc... tags that I am already using includes to bring in, so its just more stuff I have to double check to remove.

And how to I turn off this html autocomplete?

;(
Submitted by thinsoldier on Friday, 16 June, 2006 - 01:14
yip, never type your entire post into the form itself.
some bull will always happen.
jEdit vs Ubuntu 6.06
Submitted by imehesz on Wednesday, 14 June, 2006 - 22:23
Hello everybody,

I started to use jEdit about 3 months ago w/ windows. and i just love it... I tried to install it on my debian laptop but i got some error message during the installation and since that laptop is my "experiment" laptop I installed Ubuntu 6.06...

so finally, jEdit is up on my computer but it won't start... and when I try to launch it through command line, i get a nesty message saying:

GC Warning: Out of Memory! Returning NIL!
Exception in thread "main" GC Warning: Out of Memory! Returning NIL!
java.lang.NoClassDefFoundError: org.gjt.sp.jedit.jEdit
*** Got java.lang.OutOfMemoryError while trying to print stack trace.

Do you guys know what it is???

thanks
jEdit - can it be integrated into MicroSoft Visaul C++ IDE
Submitted by PaulCollingwood on Wednesday, 14 June, 2006 - 09:02
I have been using jEdit for some time, but have recently been working on a project that requires the use of the Microsoft Visual C++ IDE, which by default utilises it's own (somewhat limited by comparison) text editor.
Is there any way that I can hook jEdit into this IDE?
I appreciate that this may be an inappropate location for this post, but I'm hoping that someone in this community has had this experience and can point me in the direction of a solution Smiling

Thanks,
Paul
Replace Blank Lines with a text character?
Submitted by jroy on Thursday, 8 June, 2006 - 17:45
I have been searching the archives and cannot find an answer to my question. I want to know if I can search a file and find all blank lines and replace with a text character? Then I want to be able to search all files in a directory and do the same. Is there a specific plugin I can use? Anyone have a Macro? I cannot believe that this has not already come up Smiling

Thanks,

Jery
How to define meta keys with mouse clicks
Submitted by fincher42 on Wednesday, 7 June, 2006 - 13:34
How do I define meta key combinations with mouse clicks?
I want to define ctrl-left_mouse as 'delete word', but the gui shortcut editor doesn't allow such wonderful things. Do I need to directly edit a config file?

Cheers,
Mitch
Can I buy Manfred Usselmann's theme?
Submitted by ilazarte on Tuesday, 6 June, 2006 - 13:19
I'm working to customize JEdit, and I'm making painfully slow progress.
I really just want to get it looking like this :
http://www.jedit.org/index.php?page=screenshot&image=18

maybe with these icons:
http://www.jedit.org/index.php?page=screenshot&image=25

Can I buy these somewhere? Manfred, no joke, if you visit these forums, I will paypal you 30 bucks this instant if you have this available in a form I can import.Smiling
Bracket Matching
Submitted by fh on Tuesday, 6 June, 2006 - 09:27
How can I switch off the bracket matching feature, so that brackets in all syntax tokens are considered.
TomcatSwitch
Submitted by ccapeng on Monday, 5 June, 2006 - 05:29
Does TomcatSwitch plugin support Tomcat 5.0?
Newbie ? on Console Compile
Submitted by rray on Friday, 2 June, 2006 - 14:48
I am new to JEdit. I am using the latest version of JEdit-jEdit 4.3pre4. When I use the console to compile my source code, I see the following in the system window: javac -classpath "$CLASSPATH;C:\jdk50Study\src\access" -sourcepath "C:\jdk50Study\src\access" -g -deprecation -encoding Cp1252 "C:\jdk50Study\src\access\Mini.java" However, when the JDK runs the command, I see the follwoing error: java.lang.RuntimeException: Unrecognized command: javac -classpath <.... I left this long list out> Can anyone shed some light on this issue for me. I really need to get JEdit working....... Thank you for any words of advice. Russ
Newbie ? on JCompiler
Submitted by rray on Friday, 2 June, 2006 - 14:41
Guys/Gals:

I am very new to JEdit. I am using the tool to work with JDK1.5. I have install the JCompile pulgin. When I try to compile the source code, I receive the following exception involving the BeanShell Error Dialog box.

java.lang.NoSuchMethodError: console.Console.setShell(Lconsole/Shell;)V
at jcompiler.JCompilerPlugin.executeCommand(JCompilerPlugin.java:106)
at java.awt.EventDispatchThread.run(Unknown Source)


Is there something I have not done?

Thank you for any words of advice.

Russ
Work with FTP
Submitted by maksud on Friday, 2 June, 2006 - 11:24
Is it possible to connect to ftp using jEdit, if I'm under proxy? I cannot see place where I can fill my FTP proxy settings.

Maksud.
Lookbehind regex?
Submitted by Full name on Friday, 2 June, 2006 - 06:54
Can I use lookbehind ( http://www.regular-expressions.info/lookaround.html ) in jEdit? The lookbehind syntax ( (?<!a)b ) gives an regex error and the manual doesn't mention it so I'm guessing jEdit doesn't support it. Either that or it's using some undocumented syntax I'm not aware of.
User login
Browse archives
« July 2025  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
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   109183
Context Free Art (*.cfdg)   0.31   46075
BBEdit scheme   1.0   18610
JBuilder scheme   .001   18511
ColdFusion scheme   1.0   18044
R Edit Mode - extensive version   0.1   17492
Advanced HTML edit mode   1.0   16226
Matlab Edit Mode   1.0   16089
jEdit XP icons   1.0   15248
XP icons for jEdit   1.1   14312