Bracket balancing -- help needed
Submitted by
clif2 on
Sunday, 9 July, 2006 - 11:14
Hi,
I've an error in one of my source files, which I suspect is a missing }. How can find all the unclosed braces (etc.) in a file?
CodeBrowser not working properly with jEdit 4.3Pre5
Submitted by
Manil on
Friday, 7 July, 2006 - 19:44
Hi,
I have a probleme working with CodeBrowser in jEdit 4.3Pre5, everything was working perfectly before, but now when i click on a function the cursor doesn't go there, it seems that the find function is not working properly, with 4.3Pre4 every thing was fine, is there a major changing.
I removed Pre4 and installed Pre5 without removing the plugins that are in Document And Setting.....etc, juste the folder Program Files/jEdit.
Can Some one help me on that please.....
Thx a lot
"Search" help
Submitted by
ELockhart on
Friday, 7 July, 2006 - 12:42
I am relatively new to jEdit and using the "Search" feature. I have reviewed the jEdit Help under Regular Expressions but I am having trouble trying to construct a search that would find the word or string 'Folder' at the beginning of a line and also contain the string 'UT120AP' within the line, disregarding all other text contained within the line.
Can some please help? Also, is there documentation of sample regular expressions I might learn from?
Thanks in advanced,
Eric
Quick look around java codes
Submitted by
ccapeng on
Tuesday, 27 June, 2006 - 20:32
I have been tried Eclipse fow a while, but not really work for me. The UI is complciated and need to work on project concept.
But, I really like some of editing features in Eclipse, like "Open Declaration" and "Open Type Hierachy". Basically, I can look at the methods defined in the other classes easily.
Any similar features in jEdit?
Having trouble with lookahead regex in a syntax highlighting mode
Submitted by
soapi on
Tuesday, 27 June, 2006 - 15:26
In the particular language I am writing a mode for, the start and end of code blocks are delimited by { }. Code appears within these braces. So, it's a little like ?> except with different symbols.
Within these braces, *everything* after a double slash - // - is a comment... right to the end of a code block (not just on the same line).
For example:
{ some code // this is
a comment }
Now, the syntax I first tried was:
//
}
However, this interferes with the match for the end of the code block, and so the end } is not detected correctly.
I then tried:
//
(?=})
...which I think should do the trick, as the lookahead should trigger a match upon encountering the end brace, but not include it in the match, so it should still be there for the code block rule to find. The trouble is, it doesn't match anything at all! Further experimentation seems to suggest that the END block cannot actually contain regex - just the BEGIN block. If so, this is pretty useless, so I have to assume I'm doing something wrong.
Can anyone help me out and show me how to accomplish what I want?
Thanks!
Console plugin - change classpath default for javac
Submitted by
janM on
Tuesday, 27 June, 2006 - 11:30
I am using JEdit on Windows XP platform.
When I use the javac command with the console plugin it always defaults to "$Classpath; folder of java source code".
I would prefer to use the classpath environment variable setting, which it will do if I delete the default entry. However I don't want to have to do this each time I run the command.
Is there any way I can amend this default setting?
Thanks
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
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?
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?
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"?
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
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
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
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
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.