jEdit Community - Resources for users of the jEdit Text Editor
partial string search
Submitted by jbrave on Thursday, 25 July, 2013 - 22:25
Does anyone know a good way to search for blocks of text where you know the starting part of the string, for instance, search for a multi-line text block that starts with the string:

"DATA:"

and ends with the string

"NULL"
get back Rot13.bsh macro
Submitted by weberjn on Thursday, 13 June, 2013 - 14:18
Hi,

in recent jEdit versions the Rot13.bsh macro is no longer included. Could you please put it back?

I found it in
http://rpmfind.net/linux/RPM/sourceforge/j/je/jedit/jedit/3.2/jedit-3.2-1.noarch.html

Thanks,
Juergen
How to change font for jEdit Help
Submitted by rovf on Wednesday, 12 June, 2013 - 13:56
How can I make the font of the jEdit help window bigger? I find it hard to read.

I tried to adjust GlobalOptions/TextArea/TextFont, but this changes just the font for the edit pane, not for the Help.
CtagsInterface - filtering tags: is it possible ?
Submitted by wkevils on Thursday, 9 May, 2013 - 19:21
Hello,
With ProjectViewer and CtagsInterface plugins (in conjuction),
if the directory tree is not part of a project, you simply right click the root and select "Plugins -> Add source tree to tag index" to generate tags.

see also:
http://jedit.9.x6.nabble.com/Re-jEdit-devel-jEdit-users-ctagsinterface-tags-refreshing-td4999851.html

I don't know what is the tags engine of CtagsInterface; it could be that it is exueberant tags.

In any case, I am working with kernel source tree. When I am generating a tag file,
I am used to add some filters to the tag creation (not include architectures which I
do not need; including them increases the possible options when jumping to methods which
has the same name in different architectures.

I tried to work with CtagsInterface without creating a special project in ProjectViewer;
when I click the root of a kernel tree and select "Plugins -> Add source tree to tag index" to generate tags, it takes a lot of time and it traverses all the kernel tree.

Is there a way to add filter to the tags creation?
(like: --exclude=arch/ia64, which I use when I create my tags with exuberant tags)

regards,
Kevin
jEdit display RTF
Submitted by amysaarimn on Tuesday, 16 April, 2013 - 13:07
Hi
I'm new to jEdit and have it running in a swing app. I need to store files on the local disk in plain text, but want to allow users to work with them in RTF. On the load I'll add in the RTF and then strip it out on the save. Can anyone tell me how to set the content type in jEdit to render RTF correctly? I tried using JEditPane but it supports only limitted RTF - what I really need is the hide feature to keep track of the editing going on.

Thanks for any help
Amy
autosave on focus lost
Submitted by dmol on Sunday, 24 February, 2013 - 11:35
Hello! I have written an small beanshell startup script, that does save all modified buffers on jEdit focus lost. It's useful on html/css/php etc. development when you need an result of your changes frequently in other application (browser, curl-output etc.). Since I have not found how to upload it, I just put it here as is (put it as ~/.jedit/startup/Save-On-Focus-Lost.bsh)
EditBus.addToBus(new EBComponent() {
    public void handleMessage(EBMessage message) {
      if (message instanceof EditPaneUpdate) {
        if(message.getWhat() == EditPaneUpdate.CREATED){
          Log.log(Log.MESSAGE, BeanShell.class, "adding deactivation listener... ");
          myView = message.getEditPane().getView();
          myView.addWindowListener(new WindowListener(){
            public void windowDeactivated(WindowEvent e){
              Log.log(Log.MESSAGE, BeanShell.class, "windowDeactivated event");
              oppositeWindow = e.getOppositeWindow();
              if(oppositeWindow == null){
				  Log.log(Log.MESSAGE, BeanShell.class, "application is loosing focus ");
				  //jEdit.saveAllBuffers(myView,false);
				  jEdit.saveAllBuffers(e.getSource(),false);
              }
            }
            invoke( name, args ) { };
          });
          Log.log(Log.MESSAGE, BeanShell.class, "success");
         }
      }
    }
});
Directory Search Encoding
Submitted by Llelan D. on Thursday, 17 January, 2013 - 18:56
What encoding is used for the Search Directory function? Is it the global default, the currently active file encoding, something else?

Is there a way to specify what encoding to use to open the files in a Directory Search without temporarily changing the global default?
Copy as RTF
Submitted by weberjn on Monday, 10 December, 2012 - 15:09
Hi,

I'd like to copy a formatted source snippet from a jEdit buffer into Word keeping the format (i.e. colors). This works from Eclipse to Word, but not from jEdit which only copies just plain text.
Is there a way to make this work, or is there a plugin?

Thanks,
Juergen
jEdit icon now in Mac's menu bar at top right.
Submitted by hen3ry on Monday, 10 December, 2012 - 01:03
jEdit 5.0 on MacOS 10.7.5.

Just noticed among the usual tiny icons lined up in the Mac's menu bar at upper right... a tiny jE icon. But it doesn't seem to do anything. Typically such icons identify themselves with a tool-tip on mouse-over, and most of them reveal pull-down menus.

In most cases these icons provide system monitoring or control functions, e.g. temperature monitor, scripting, backup, language script, time/date, etc. It seems unusual for an app like jEdit to be represented here.

Am I missing something really obvious?

TIA
jEdit gets disabled in MacOS
Submitted by hen3ry on Monday, 10 December, 2012 - 00:57
jEdit 5.0 on MacOS 10.7.5 -- I've seen the same in previous versions of both.

Launch jEdit and it works normally.

In some cases, I guess if I close all open windows, jEdit is still clearly running, but no menu items are available (all grey). The only option I've found for continuing is to Quit and relaunch.

So... I shouldn't close all open jEdit windows, or what? Is there another way out?

TIA
Write protect part of buffer
Submitted by weberjn on Thursday, 8 November, 2012 - 10:18
Hi, is there a way to write protect parts of a buffer? I keep a work diary in jEdit and would like to have old entries write protected against accidental changes.

08.11.12
asked question in jEdit Forum
07.11.12
bla2 bla2
Tasklist does not work with .css files ?
Submitted by didjeko on Friday, 12 October, 2012 - 10:52
I use Jedit 4.5.2 and I cannot figure how to use the Tasklist plugin in css files. It works well with html and php files, but with css the tags TODO:,... etc are not recognized and does not appear in the Tasklist window. Does anyone know hot to make it work i this case or confirm that it is a bug ?
Thank you
How do I find usage information on plugins
Submitted by mlefevre on Thursday, 20 September, 2012 - 20:48
I have tried looking up help or usage information on jEdit plugins and can't find hardly anything. For instance Lucene, CodeHelper, and the console plugin. Specifically, I want to find out how the regexp processor for the error processor feature in the console plugin works. Does it apply all of the regexp definitions one at a time from top to bottom on every line of the output? Or, just it just apply the regexp definition at the top of the list and none of the others? Also, I don't understand how the "extra lines" regular expression can be used. The reason why I ask is that my build system does not output the full path to the file when an error occurs (only the file name itself). So, the error list window can't locate the file since it only knows file names relative to the top of the project tree.

Also, I'd like to find out whether the Lucene plugin can tie into the project viewer and process all files in the project as opposed to just the current or open buffers.

Finally, I'd like to troubleshoot the CodeHelper plugin's call tree feature as I can't seem to make it do anything at all.

Thanks in advance for any help,
Marc
I can't add new toolbar icons for Navigator "forward" and "back"
Submitted by mlefevre on Monday, 10 September, 2012 - 19:25
I'm using jEdit 4.5.1 on Linux (Centos 6.3) and I have loaded the Navigator plugin (version 2.4). When I try to edit the toolbar and add buttons (icons) for The Navigator "forward" and "back" actions, they show up in the Global Options dialog as I create them, but when I "apply" or "exit", they don't show up on the tool bar. I can create toolbar buttons for other Navigator actions and for actions from other plugins. I just can't add the forward and back actions.

Does anyone know of a problem that leads to this behavior? I'm coming back to jEdit after a year with slickEdit and I'm trying to restore a configuration I know I had before.

Marc
How to correct syntax highlighting for comment: @throws in php edit mode
Submitted by Denouncer on Sunday, 19 August, 2012 - 12:08
Hi all,

I'm hoping someone can help. I've noticed that in the latest version of jEdit that if I use "@throws" in a function comment (PHPDoc style) the syntax highlighting seems to go out of whack. Basically, if it sees @throws... inside a comment block, it highlights the line correctly, but then all proceeding lines seem to be highlighted as comments as well. For example:

/**
* Test
* @throws Exception
*/
public function test() {

}

Basically, instead of it seeing "*/" as the end of the comments, it continues to highlight "public function" as a comment as well. This didn't happen in earlier versions, from what I can tell, only newer versions.

Anyone know how I can fix this?

Thanks
Matching characters other than brackets
Submitted by Kevin Moore on Friday, 10 August, 2012 - 22:05
I am a new user and I am wondering if JEDIT supports matching on characters other than brackets? I've searched previous posts, and I have found requests for this type of operation, but no mention of it's support.

I would like to be able to jump between the beginning/end of old style c comments:

/**********
lots of lines of comments....
lots of lines of comments....
**********/


Thanks, Kevin Moore
Can't use Alt key in jEdit 5 under Mac OS X
Submitted by avamk on Sunday, 29 July, 2012 - 23:35
Hello,

I am trying to get my Alt key to work in Mac OS X. Whenever I try to use it as part of a shortcut, it instead writes a symbol (which symbol depends on what character I hit on the keyboard) into my buffer.

I searched for previous posts, and one suggested modifying my startup.bsh. I tried but still couldn't get my Alt key to function. Can someone tell me what I am doing wrong? Below is the section in my startup.bsh:

/*{{{ Remapping modifier keys part I */

/* The below is the default, swap the items around to
* change meaning of C+, A+, M+, S+.
*/
//KeyEventTranslator.setModifierMapping(InputEvent.CTRL_MASK,
// InputEvent.ALT_MASK, InputEvent.META_MASK,
// InputEvent.SHIFT_MASK);

/* ... and this the MacOS default: */
KeyEventTranslator.setModifierMapping(InputEvent.META_MASK, /* == C+ */
InputEvent.CTRL_MASK, /* == A+ */
InputEvent.ALT_MASK, /* == M+ */
InputEvent.SHIFT_MASK /* == S+ */);

/*}}}*/

/*{{{ Remapping modifier keys part II */

/* Note if you chose to make use of the M+ (option key) prefix on MacOS, you
* will need to disable a little piece of code: */
Debug.ALT_KEY_PRESSED_DISABLED = false;
/* Otherwise M+ will be ignored for the purposes of keyboard shortcuts. */

/* But if you enable this, you might find that Option+8 for example invokes your
* macro but also inserts a bulletpoint, as per standard Macintosh keyboard
* behavior. To disable the Option key for inserting special high ASCII
* characters, uncomment this. Note that it has wider implications, notably
* DROVAK keyboard shortcuts will be mapped as if the keyboard was QWERTY. */
Debug.ALTERNATIVE_DISPATCHER = false;

/*}}}*/
Sentence recognition is text mode?
Submitted by avamk on Tuesday, 24 July, 2012 - 15:52
Hello,

I realise that jEdit has shortcut keys for moving to the beginning and end of lines. Is there a similar way to move the caret to the beginning and end of a *sentence* in text mode? Is jEdit, or perhaps a plugin, capable of recognising sentences?

Thanks!
Plugin Column Ruler bugs?
Submitted by linuxerwang on Sunday, 22 July, 2012 - 16:27
Hi, all

I am using Column Ruler and love its functionality but it seems has a few issues (latest version of Column Ruler and jedit 4.5 pre1):

1. Add Marker/Guide through the "Plugins Options" dialog doesn't work most of time. After input the marker the list doesn't have that marker. Sometimes works though.

2. The guide line created through column ruler doesn't show up when jEdit starts. I have to always click on the ruler at the column number and the guide line is shown. It's tedious to do it every time.

Thanks.
Trouble adding Markdown syntax highlighting mode for the jEdit 5.0
Submitted by avamk on Saturday, 21 July, 2012 - 01:25
Hello, I am just starting to explore jEdit 5.0 on Mac OS X 10.6.8, and so far I find it all to be very exciting! Thanks for creating such a great piece of software. I downloaded the markdown.xml Markdown syntax highlighting mode from here: https://github.com/peterlynch/jEdit-modes And I tried to add it to jEdit by placing markdown.xml in the same folder as ~/Library/jEdit/modes/catalog Then I added the following to the catalog and saved it: However, even after restarting jEdit, the markdown mode still does not appear when I try to change modes in the Buffer Options dialog. How should I troubleshoot this, did I skip any steps? Thanks!
User login
Browse archives
« June 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
 
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   108256
Context Free Art (*.cfdg)   0.31   46074
BBEdit scheme   1.0   18610
JBuilder scheme   .001   18511
ColdFusion scheme   1.0   18044
R Edit Mode - extensive version   0.1   17491
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