jEdit Community - Resources for users of the jEdit Text Editor
Archives
Open_This.bsh v1.1 by Tomek Peszor
Submitted by takeshin on Monday, 7 July, 2008 - 06:11
Opens selected path in new buffer. Select path to any file in current textarea and run this macro to open this file in new buffer. If nothing is selected, looks for file path inside quotes surrounding caret. Opens remote URLs as well. Based on Open_Selection.bsh macro, but no selection is needed. Most useful for included files, linked HTML pages, linked scripts or CSS files.
Sorting in MacroManager
Submitted by takeshin on Monday, 7 July, 2008 - 06:18
Macros in MacroManager plugin should be sorted alphabetically.
Also browsing/installing by category would be useful.

--
takeshin
Drag_Down.bsh v1.1 by Tomek Peszor
Submitted by takeshin on Monday, 7 July, 2008 - 07:13
Moves current line or selected lines one line down. It is not needed to select lines from the beginning to the end. Just hold shift+up/down arrow to indicate which lines to move, and then, use a keyboard shortcut you have chosen for this macro. Keeps selection. Suggested shortcut: CS+down arrow. Use in conjunction with Drag_Up.bsh macro.
Drag_Up.bsh v1.1 by Tomek Pęszor
Submitted by takeshin on Monday, 7 July, 2008 - 07:16
Moves current line or selected lines one line up. It is not needed to select lines from the beginning to the end. Just hold shift+up/down arrow to indicate which lines to move, and then, use a keyboard shortcut you have chosen for this macro. Keeps selection. Suggested shortcut: CS+up arrow. Use in conjunction with Drag_Down.bsh macro.
Plugin or Macro?
Submitted by tj.rothwell on Wednesday, 9 July, 2008 - 18:22
I was wondering if there is a way to change the behavior when editing a file that was updated/modified outside the editor.

Instead of a notification to reload or ignore the change, could there be one that would allow the user to merge the two?

In order to do this, could it be done as a macro tying in jdiff? Or would you need a plugin to override the event on how to handle changed files?
Error Message
Submitted by audstune on Saturday, 12 July, 2008 - 20:01
Hi...I installed jedit on my desktop and love it. But I tried to run it on my laptop and I get an error message: When Java Virtual Machine Launcher tries to launch, the error says: Could not find the main class.

Can anyone help with this? I need to use my laptop on a trip to update my xml file.

Thanks!
PHPParser: removing check for ?>
Submitted by Max Headroom on Sunday, 13 July, 2008 - 16:11
Hi
In Drupal, it is recommend not to close PHP code with a '?>'. as not to clash with other modules. PHP code works fine with out it.

Is there a way to remove the check for '?>' from the parser?
Line Height Correctioin
Submitted by _HI_ on Tuesday, 15 July, 2008 - 18:42
when I did install jedit with openjdk in fedora, "Anti Aliased" visibility of source code was more qualited and beauty than with j2se package, but there was another problem , fonts height is not enoutg ( such as Monospaced, Dejavu Sans Mono ) and sometimes underline simbols disappears and after appears.
for example "mysql_connect" functioin is shown as "mysql connect". is posible to add option such as netbeans 5.5.1 has "Line Height Correctioin" in "Editor Settings" Options, or can anyone fix this problem in jedit with alternative way?
Show CR LF
Submitted by yocec on Wednesday, 16 July, 2008 - 13:21
Is there a way to show end line symbol ? carriage return and/or line feed

When I open a file, I need to know end line caracter : LF only or CRLF

Is ther any way to do that ?

Thanks
Component or piece of code for search and replace text multiline with java
Submitted by andremonio on Wednesday, 16 July, 2008 - 18:29
Hi everybody.

Do you have any component or piece of code for search and replace text multiline with java?

I have installed the jEdit and their sources, but it is huge and complex, and I only need this functionality to replace many of the type TXT files.

Thanks!

Best regards.

---- André Campanini - Brazil
jEdit licence when using textarea
Submitted by blafountain on Wednesday, 16 July, 2008 - 23:10
Hello, I stumbled across jedit's capability to be embedded in a swing application using TextArea. This product is a perfect fit for what i need. The only thing is my application is not going to be released as GPL. I was wondering if there was any consideration to make the jedit-textarea.jar under a LGPL style license while jedit as a whole under the GPL.

I would need to make some additions to the TextArea that i would love to contribute back, but with a GPL license i will have to either build my own or find another (probably purchase, i wasn't able to find another product equal to jedit that was LGPL).

thanks for your time.
Real full-screen functionality
Submitted by zorglub76 on Thursday, 17 July, 2008 - 09:05
Is it possible to create a full screen functionality? I mean **real** full screen functionality (not like that Full Screen macro).
My workspace is shrinking, since I use buffer tabs and docked windows, and my notebook's screen is 14" one. So full screen functionality would be very handy for me..
Find Highlighted
Submitted by abc123 on Thursday, 17 July, 2008 - 10:05
When tracing through code I find it's quite useful to highlight a variable and then execute a key stroke to find the next occurrence of it (i.e. what can set the variable) or a different key stroke to find the previous occurrence of it. It would be particularly useful if when highlighting something, jedit yanked it into an area of memory, such that if you then changed to a different buffer, you'd still be able to execute your key stroke but find the word you'd highlighted in the previous buffer.

Does anyone else think this would be useful? I can nearly achieve this using some macros but I'd like to see this feature as a standard part of jedit.
Edit window locks after switching to another app and back.
Submitted by ttmrichter on Friday, 18 July, 2008 - 03:37
This isn't a showstopper, but it's really annoying. I don't know if this is a bug or if it's something bad in my setup, so I'm posting here first to see if this can be resolved before reporting it formally as a bug.

Setup:
- jEdit 4.3pre14
- Ubuntu 8.04
- Java 1.6u7
- Plugins:
- AStyle Beautifier, Beauty, BufferList, BufferTabs, Code2HTML, Column Ruler, Common Controls, Console, CtagsSideKick, Editor Scheme, ErrorList, FTP, GnuRegexp, Hex Edit, Hyperlinks, Info Viewer, JavaScript Shell, JDiff Plugin, JTidy, Latest Version Check, MacroManager, Project Viewer, QuickNotepad, RecentBufferSwitcher, RFCReader, RubyPlugin, SideKick, SQL, SshConsole, SuperAbbrevs, SuperScript, Syntax Helper, TextTools, WhiteSpace, XercesPlugin, XInsert and XML

All of the plugins are at the latest known version according to the Plugin Manager.

With this setup, I experience some very bizarre behaviour. Whenever I switch away from jEdit, when I come back the edit window will simply not respond to the keyboard at all. Mouse activity works fine. I can get context menus. I can cut and paste using them. The editing window seems to be working fine in every respect except that it ignores the keyboard. To make the keyboard work, all I have to do is go to any other window -- say the console window or my side kick window or the project manager window -- and click inside it, giving it the focus. Then if I click back in the edit window everything works perfectly.

To me this smells of some kind of plug-in interaction problem, but I'll be damned if I can figure out what's clashing where. I've tried disabling various plug-ins here and there, but nothing seems to get rid of this problem. Still, with this many plug-ins loaded it's hard to figure out what combination is the magic one, so I'm asking for those more experienced with jEdit to lend me a hand with this.

What can I do to better characterize this problem and, even better, what can I do to get rid of it?
resizing and relocating Dockable Window
Submitted by md9119 on Friday, 18 July, 2008 - 07:51
Hello,

I am writing my first plugin. I need to resize and relocate my plugin window. How do I do this? Neither of these two below do what I want:
view.setLocation(x,y); // relocates main editor
view.getDockableWindowManager().getDockableWindow(SideViewPlugin.NAME).setLocation(x, y); // this moves the JPanel to x,y _within_ the Dockable Window.

What I want to do is to move and resize the whole plugin window. How do I accomplish that?

Thank you,
Maciej
processKeyEvent method in KeyEventWorkaround class
Submitted by funa_take on Friday, 18 July, 2008 - 14:18
I have some questions for processKeyEvent method in KeyEventWorkaround class.

Q1
case KeyEvent.KEY_PRESSED:
....
default:
if (!evt.isMetaDown()) {
if (evt.isControlDown() && evt.isAltDown()) {
lastKeyTime = 0L;
}
.....

Why lastKeytime = 0 ,when Ctrl and Alt are downed.

Q2
case KeyEvent.KEY_TYPED:
....
if(((modifiers & InputEvent.CTRL_MASK) != 0
^ (modifiers & InputEvent.ALT_MASK) != 0)
|| (modifiers & InputEvent.META_MASK) != 0)
{
return null;
}

Why is it "xor" instead of "or"?


Whren I press Alt and Ctrl and "p key" on Keybord Tester, "CA+p p" is shown in TextField on Linux.
To solve this problem, the following code was compiled.


case KeyEvent.KEY_PRESSED:
....
default:
if (!evt.isMetaDown()) {
if (evt.isControlDown() && evt.isAltDown()) {
//lastKeyTime = 0L;
}
.....

case KeyEvent.KEY_TYPED:
....
if(((modifiers & InputEvent.CTRL_MASK) != 0
|| (modifiers & InputEvent.ALT_MASK) != 0)
|| (modifiers & InputEvent.META_MASK) != 0)
{
return null;
}

Does this code have the problem?
ColdFusion comments / changing jEdit comments
Submitted by Todd on Tuesday, 22 July, 2008 - 20:04
I'm working on some ColdFusion files and when I do the standard c+e c+c for a comment, it inserts an HTML comment <!-- comment -->, not a CF comment <!--- comment ---> with three hyphens. Is it possible to change this?

Thanks,

Todd
Using 4.3 pre14
Safely override php.xml
Submitted by kendowns on Wednesday, 23 July, 2008 - 13:35
Hello!

I have added a custom rule to /usr/jedit/modes/php.xml so that certain heredoc blocks are delegated to Javascript syntax coloring. I would like to distribute this change to users of my framework, but it does not seem like the Right Thing to directly modify this file.

Is there a defined way to add things to these default syntax coloring files without directly modifying the original file? Can I put a copy of it in my ./jedit/modes file? Is there some other mechanism for doing this?

TIA...
Modeline in jEdit?
Submitted by kLy on Thursday, 24 July, 2008 - 11:24
Is there something like the modeline function of vim in jEdit, or something available through a plugin? It's just a real pain when specific buffer settings aren't saved and you have to set them each time when opening the file
Autosave not working?
Submitted by ewiener on Monday, 28 July, 2008 - 18:06
It doesn't seem like autosave is working on my jEdit installation. If it is, I can't find any of the files it's creating. Is there any way I an find out if its working?
User login
Browse archives
« July 2008 »
MoTuWeThFrSaSu
 
1
3
4
6
8
10
11
14
19
20
21
25
26
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   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293