jEdit Community - Resources for users of the jEdit Text Editor
Jedit 4.3pre16: automatic identation in C++ mode witchin switch/case blocks
Submitted by SegFault on Monday, 23 February, 2009 - 16:02
Hello. I'm using jedit 4.3pre16 on slackware 12.2 linux, and I had following problem: When I was typing something something like -- switch(index){ case(Choices::done): -- jedit kept moving (case(Choices::done)Smiling line to the left (i.e. was unindenting the line) every time I typed colon (*any* colon - even the one in the middle of Choices::done). I was able to partially fix it by copying cplusplus.xml to ~/.jedit/modes, adding it to ~/.jedit/modes/catalog and replacing --- ?!Smiling).*$" /> --- with --- ?!Smiling).*$" /> --- But I got another problem. Now when I type something like: --- switch(index){ case(Choices::done): break; case(Choices::cancel):{ --- jedit keeps moving "case(Choices::cancel):{" to the right (i.e. indenting) when I type "{". This obviously happens because jedit "thinks" that break is not within indentation block and defines proper indentation level. How can I fix that? I've tried replacing --- --- with regexp that would exclude "case" (something like "(?!\bcase\b.*\(.*\):){"), but this didn't work (it looks like indentOpenBrackets doesn't take regexp as argument). Any ideas?
Console Plugin -- focus jumps to text edit?
Submitted by coolcat on Thursday, 12 February, 2009 - 19:26
Hi, I've been searching the forums but so far can't find an answer to this:

1. I initiate a build in the console and it completes.
2. I type cd .. in the console so I can run a build in a different directory.
3. As I'm typing the next build command, I notice the focus has jumped to the text edit section and I'm inadvertently typing text into one of my source files.

This seems pretty trivial, but it happens again and again. Strangely, after I put the focus back into the console, I can do as many cd's as I want and the focus will never jump to the code. Only after a build. Does it have something to do with the error-list plugin? I can think of no reason I'd ever want the focus to jump to the text window, but maybe there's a point to this feature?

Thanks
Changing Jedits name in the MacOS menubar
Submitted by tomasio on Monday, 9 February, 2009 - 21:11
Can anyone give me a hint how to change the name of Jedit in the menubar of MacOS 10.5.6? I just installed JEditpre16 and since then it shows "org.gjt.sp.jedit.jEdit" instead of "Jedit" in the menubar. I consider this real ugly as the name in the menubar should be the app name and no cryptic java class path (or whatever that is).
how to print?
Submitted by Eric Inazaki on Monday, 9 February, 2009 - 16:45
What needs to be done in order to get jedit to print?

When I try to print jedit says "no print service found"
however, I can print from everywhere else on my system
(lpr, firefox, etc). I'm using open suse 10.3 and jedit
4.2 and 4.3, same problem both ways.

On an unrelated subject, is there a way to search the
forum?

TIA,
eric
Mode woes
Submitted by haama on Friday, 6 February, 2009 - 17:09
Hi all, I've gotten a new Mode to work for the most part, but am still having trouble with Auto-Indent and RegExp tags. By the way, I'm using jEdit v4.3pre16, java 1.6u11, and Windows (XP). Auto-Indent: I'm going for begin/if stuff else/elseif more stuff endif/end So I tried It indents properly, but it doesn't unindent. Narrowing it down, the UnindentThisLine tag is working exactly like the IndentNextLines tag. For example, will indent the lines following "else" or "end". I thought it was a bug, but UnindentThisLine works prefectly with java mode. Not sure what I'm doing wrong, though. The props and main rule set is %% %g [\d.+-]+[ef] RegExp tags: As you can see in the rules above, I have a digits RegExp tag and a SEQ - neither one of them works. For digits, I'm trying to display decimals and negatives with the same highlight as numbers, using DIGIT_RE="[^%][.-](?=[0-9])". The decimal and negative display as Operators (which I have them defined as later) in every case I can think of ".4", "4.4", "-4", "423.543-45". Tried it as [.-](?=[0-9]) and that didn't work either. The SEQ_REGEXP tag is supposed to display anything like "%.3f" as a solitary operator. Instead, it displays the "%." as operators, the number(s) as digit, and when I type in the last letter the number and letter become null. I've tried this with and without the hash character to no avail. I know I'm looking over something, but I can't tell what and have exhausted my possibilities. Any help is much appreciated, thanks.
Jedit launch hotkey ctrl+alt+j (c+a+j)
Submitted by KimBastin on Tuesday, 3 February, 2009 - 08:49
On WinXP, jEdit 4.3pre16 has hijacked the key combination ctrl+alt+j (c+a+j) as a keyboard shortcut to launch itself. I need this combination for something else, but it seems to be undocumented as a jEdit hotkey and I can't find any way to change or disable it.

I found a couple of similar queries on this forum, and the answer given was to open the jEdit shortcuts (.lnk's) and edit the properties (the field 'Shortcut key' under the Shortcut tab, presumably). I have three jEdit shortcuts — on the desktop, the quicklaunch bar and the Start menu, and on all of them the shortcut key is set to 'None'.

So my question is, where is the c+a+j hotkey combination that launches jEdit stored, and how can I change or disable it?

Thanks
Kim
i/o popups
Submitted by Frankly33 on Tuesday, 3 February, 2009 - 00:22
I am new to jEdit, and it keeps popping up I/O errors that aren't affecting me. How do I stop these from popping up?
Making Key Words stand out
Submitted by Ciwan on Monday, 2 February, 2009 - 21:22
Hi guys

Can someone please tell me why the JEdit I have downloaded and installed doesn't change the colour of words such as import - if - else - private - int - boolean - public ...etc

Can someone help me with this ... PLEASE

I'd greatly appreciate any help given.

Thank You
icon-packs: Howto install, create new, etc..
Submitted by jdlx on Saturday, 31 January, 2009 - 14:38
Hi,

i was searching the web and this forum about any usefull info on installation and creation of icon-packs and/or whole themes.. with little success.
The wiki article on icons[1] seems to be dead/empty, and other resources, like turdheads icon-pack[2] and installation guide[3] plain don't work for me.

So could anyone help me on these questions:

1. How/where do ypu install icon-packs?
2. Is there a tutorial or guidelines on how to create a icon.pack?
3. I suppose the themes (Metal,CDE/Motif,Mac OS) are not a part of jEdit, but of Java's Swing, ist that correct? If so, is there a simple way to change the window color (not text-area!) of a given theme (in my case MacOS)?

Bottom line is: i'd like to tweak jEdits appearance to be more mac-like.. spending hours per day in front of an editor which you love by it's functionality, yet almost hate for it's visual appearance has been nagging me for a long time.. Eye-wink

thx, for any hint..
jc

[1]http://community.jedit.org/cgi-bin/TWiki/view/Main/CustomIcons
[2]http://www.turdhead.com/downloads/OSXTurdheadIconPack.jar
[3]http://www.turdhead.com/2007/09/27/going-native-with-jedit-new-download-makes-this-editor-shine/
JEdit 4.3pre-16.1 possible to MINIMIZE/CLOSE to TRAY ????
Submitted by yvonne on Wednesday, 28 January, 2009 - 22:20
Hi...great to be here.... I've realized that JEdit does everything I need...!!! fantasic..

So, enjoying the plugins and gettig a bit more skilled...

I WOULD REALLY like to be able to close or minimize and have JE STAY in the tray...

running linux...

possible???

thanks!
ctags and jedit
Submitted by tajb on Monday, 26 January, 2009 - 13:40
Hello,
Is there a way to use ctags and jedit across different computers? In other words, I want to open a file from a remote machine on my machine via SFTP, and jump to tags in other files on that remote machine. Maybe I can somehow load a tags file created on that remote machine to my machine? I have a few of the ctags plugins, including the CtagsInterface one. So far none have really explained if this is even possible, let alone how to do it. Thanks.

Tony
Help Text Size
Submitted by stretch6555 on Sunday, 25 January, 2009 - 04:20
Hi,

Is there any way of increasing the size of the text in the JEdit Help?
It's kind of small.
How Do I Set a Default Edit Mode for a Specific File Extension?
Submitted by Sledged on Sunday, 25 January, 2009 - 04:09
Title says it all. Example: How do I get files with the extension *.foo to automatically have the contents highlighted as though it were a FORTRAN source file?

Thanks,

D
search shortcut
Submitted by sebo on Wednesday, 21 January, 2009 - 13:03
Hello,

After using UltraEdit, I now use jEdit under Linux. In Ultraedit, I have a shortcut (F3) which look for the selected word in the file.
I was wondering how I can do the same thing in jEdit.
Note that I ask this question because I find annoying to use C+f then "enter" and then "find next"...

Thanks for your help.

Sebastien
JavaScript support for Sidekick on Windows
Submitted by neerolyte on Tuesday, 20 January, 2009 - 03:19
I just thought I would post this because I've been struggling with this for a while.

If you install CTagsSideKick and drop the ctags windows binary available from http://ctags.sourceforge.net/ straight into your jEdit install directory (e.g. C:\Program Files\jEdit\) the whole thing actually works really well.
Mark Modified Lines
Submitted by jrchilds on Friday, 16 January, 2009 - 21:38
Is is possible to automatically add a marker to any modified line?
Save Caret Position in Udo Buffer?
Submitted by jrchilds on Wednesday, 14 January, 2009 - 20:12
Does anyone know if there is currently a way that I can tell jEdit to remember Caret positions in the undo buffer?

We commonly will do several searches in a row trying to follow out the logic of a routine, then we want to be able to step back through the results, (or cursor locations,) using undo.

Any ideas?
LOC
Submitted by allelopath on Monday, 12 January, 2009 - 16:29
Can jEdit count lines of code?
(not # of lines in file, but lines of code)
"Optional.jar" plugin freezes jEdit
Submitted by rovf on Monday, 12 January, 2009 - 10:46
In jEdit 4.3pre16 (and also in 4.3pre13) running on Windows 2000, the "Optional.jar" plugin freezes jEdit. This can be most easily be seen in the following way:

(1) I install the "Optional.jar" plugin.
(2) Using the Plugin Manager, I make sure that "Optional" is the only plugin activated at the moment.
(3) I now click on Plugins/Plugin Options.

This freezes jEdit permamently, i.e. I have to use the task manager to kill it.

The problem might, of course, also be inside the plugin, but I don't know how to contact the plugin developer, Mr. Alan Ezust - but maybe he is reading this forum too.
Indent problem
Submitted by Edijs on Friday, 9 January, 2009 - 11:25
Hello! Just recently I had to change form developing on a Mac to Windows. Well, on Mac I had this cool editor, called TextWrangler. I searched the web and found Jedit to be the most look-and-fell-alike to TextWrangler out there and that's awesome. Even the shortcuts are similar Smiling ; anyways, I managed to do all the setup and even my own syntax highlighting, but my only problem now is - I need to get rid of that automatic indentation. The language I program in has so many built in functions and procedures, that there are some files, that contain logical blocks of code consisting only of outer functions, thus the automatic indentation is working in the wrong place and throws my lines of code all over the place.

The only thing that I have not been able to shut down is the indentation when I type. I could shut off the auto indent when I press TAB or ENTER, but where can I shut the auto indend upon typing?

BIG thanks! Smiling
User login
Browse archives
« May 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   108254
Context Free Art (*.cfdg)   0.31   46074
BBEdit scheme   1.0   18609
JBuilder scheme   .001   18511
ColdFusion scheme   1.0   18044
R Edit Mode - extensive version   0.1   17490
Advanced HTML edit mode   1.0   16226
Matlab Edit Mode   1.0   16088
jEdit XP icons   1.0   15248
XP icons for jEdit   1.1   14312