jEdit Community - Resources for users of the jEdit Text Editor
Archives
Opacity "Window" Plugin
Submitted by AlexCory on Monday, 1 October, 2007 - 15:59
One feature that I thought would be useful is to have an Opacity controlled "window" plugin.

The plugin would only be useful when docked into one of the defaut positions. However once docked it would have options to control a level of transparency; allowing you to see your desktop of whatever operating system your using. In my case, I like to run PuTTY at the same time as jEdit for running PHP scripts. What I would like to do with this transparency window is to be able to control the PuTTY shell/window through the "window" plugin without minimizing jEdit.

Basically like punching a hole through the jEdit program. Because desktop control would stay as is depending on the operating system and jEdit wouldn't have to be minimized or render any desktop applications specifically. The only thing jEdit would do is provide a hole to see through to your desktop then you could run and use desktop applications normally(the applications would be external to jEdit so if you minimized jEdit you would still be able to use the applications as you would normally).

I don't think this is possible yet, but it would be a nice feature in my opinion.

Although, last I remember Java was still working on a way to control desktop applications using Java, I'm not sure if this has progressed or not...



Anyway, its just a random idea I had. Comments are welcome.
Retire this forum and link the SourceForge equivalent...
Submitted by Denyer on Wednesday, 3 October, 2007 - 12:29
...there's an active jEdit community, but this forum gives the impression discussion is slow/dead. It's also somewhat unfriendly to newcomers as a fair number of threads never get a response.
Jedit doesnt work after installation
Submitted by el.mago on Tuesday, 9 October, 2007 - 12:41
Hi I'm using Debian sidux and Java 1.5 which is installed under /usr/bin/java. I've changed the JAVA_HOME and PATH variable as required. Nevertheless I'm getting the following error message when trying to start Jedit from a console with typing jedit &: GC Warning: Out of Memory! Returning NIL! GC Warning: Out of Memory! Returning NIL! Exception in thread "main" java.lang.OutOfMemoryError <> I've 2.5Gb Mem installed. What am I doing wrong? JJ
Enhanced Tags plugin (Tags.jar v2.0.3 (enh by Shlomy Reinstein)
Submitted by shlomy on Sunday, 14 October, 2007 - 12:10
This version of the Tags plugin has a few enhancements and fixes:
  1. In case of tag collisions, the tags found can be displayed in a dockable window instead of a popup. The 'Tag List' dockable can be opened from the plugin menu and docked in one of the 4 docking positions (or float) like any other jEdit dockable. When the dockable is open, tag collisions will be displayed in the dockable instead of the popup.
  2. The Tag List dockable allows quick filtering by tag attributes (when present in the tag files). This allows you to quick reach the tag you're interested in when there are many tags with the same name, which is common in object oriented languages. The "Filter" menu at the top left of the dockable lets you filter by attribute values.
  3. A new option pane - Actions - was added, allowing you to create custom "follow tag" actions which resolve tag collisions by apply a list of filters, each keeping only those tags having a specific attribute value. This way, you can create an action like "Follow function definition" (which would follow tags whose "kind" attribute is "function" or "method") and another action like "Follow function declaration" (which would follow tags whose "kind" attribute is "prototype", or "function" if there are no tags with a "prototype" kind).
  4. A new option is available in the General option pane, to use line numbers for following tags (when specified in the tag files). This is useful for object oriented languages, where the same tag can be defined multiple times in the same file, each time under a different class, with the exact same signature. It is also useful for differentiating between function declarations and definitions.
  5. Fixed the display of function signatures (when specified in the tag files) in the tag collision list.
XML plugin fails with 4.2 final
Submitted by jeffj on Wednesday, 17 October, 2007 - 20:15
I can't get the XML parser to work with jEdit 4.2 final on a new Windows installation. Otherwise, jEdit runs fine.

When I try to use the plugin with an HTML file, I'm told that xml.parser.HTMLParserImpl didn't load because the class xml/parser/XmlParser wasn't found. Seems like those slashes should've been dots. The stack trace is at the end of the message.

I also get an error message, at the same time, that org.apache.xerces.jaxp.SAXParserFactoryImpl wasn't found.

After this, I have to use the Plugin manager to unload the XML plugin before I can type greater-than characters into any buffer that the XML plugin normally works with. Also, none of the functionality of the plugin is available.

Any ideas on how to fix it?


The stack:

java.lang.NoClassDefFoundError: A class required by class: xml.parser.HTMLParserImpl could not be loaded:
java.lang.NoClassDefFoundError: xml/parser/XmlParser
at bsh.BshClassManager.noClassDefFound(BshClassManager.java:552)
at bsh.BshClassManager.plainClassForName(BshClassManager.java:241)
at bsh.BshClassManager.classForName(BshClassManager.java:170)
at bsh.NameSpace.classForName(NameSpace.java:1265)
at bsh.NameSpace.getClassImpl(NameSpace.java:1165)
at bsh.NameSpace.getClass(NameSpace.java:1106)
at bsh.Name.consumeNextObjectField(Name.java:301)
at bsh.Name.toObject(Name.java:202)
at bsh.BSHAmbiguousName.toObject(BSHAmbiguousName.java:59)
at bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:86)
at bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:62)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.Interpreter.eval(Interpreter.java:641)
at bsh.Interpreter.eval(Interpreter.java:731)
at bsh.Interpreter.eval(Interpreter.java:720)
at org.gjt.sp.jedit.BeanShell._eval(BeanShell.java:446)
at org.gjt.sp.jedit.BeanShell.eval(BeanShell.java:410)
at org.gjt.sp.jedit.ServiceManager$Descriptor.getInstance(ServiceManager.java:321)
at org.gjt.sp.jedit.ServiceManager.getService(ServiceManager.java:264)
at sidekick.SideKickPlugin.getParser(SideKickPlugin.java:142)
at sidekick.SideKickPlugin.getParserForBuffer(SideKickPlugin.java:167)
at sidekick.SideKick.setParser(SideKick.java:131)
at sidekick.SideKick.handleMessage(SideKick.java:155)
at org.gjt.sp.jedit.EditBus.send(EditBus.java:148)
at org.gjt.sp.jedit.jEdit.addPluginJAR(jEdit.java:1034)
at org.gjt.sp.jedit.pluginmgr.ManagePanel$PluginTableModel.loadPluginJAR(ManagePanel.java:376)
at org.gjt.sp.jedit.pluginmgr.ManagePanel$PluginTableModel.setValueAt(ManagePanel.java:298)
at javax.swing.JTable.setValueAt(JTable.java:2662)
at javax.swing.JTable.editingStopped(JTable.java:4661)
at javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:125)
at javax.swing.DefaultCellEditor$EditorDelegate.stopCellEditing(DefaultCellEditor.java:330)
at javax.swing.DefaultCellEditor.stopCellEditing(DefaultCellEditor.java:215)
at javax.swing.DefaultCellEditor$EditorDelegate.actionPerformed(DefaultCellEditor.java:347)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:291)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6038)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5803)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at javax.swing.plaf.basic.BasicTableUI$Handler.repostEvent(BasicTableUI.java:924)
at javax.swing.plaf.basic.BasicTableUI$Handler.mouseReleased(BasicTableUI.java:1138)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
at java.awt.Component.processMouseEvent(Component.java:6038)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5803)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Mode C onversion and Newbie Console Help
Submitted by woodslanding on Thursday, 18 October, 2007 - 09:14
I am using a program called MUP, which compiles music graphics from text files I have been editing in JEdit. There are currently MUP syntax highlighting files for VIM, EMACS and KATE. I'm wondering if there is any way to convert any of these files into a mode file that JEdit can use. Or if there is a good tutorial out there on the way in which these type of syntax files are set up. It's obviously a problem that has been addressed by a number of programs in a variety of ways, but it's pretty much greek to me.

Also, if there is an intro to console tutorial somewhere, I'd like to check it out. The MUP compiler runs from the command line, so I'm thinking it should be possible to get it to compile from the console in JEDIT, but I'm not at all command-line savvy.... Ideally, I'd like to just compile from a key-command.

Any help welcome!
-eric
jEdit hijacked ctrl+alt+j
Submitted by wtijsma on Thursday, 18 October, 2007 - 10:59
Hi,

For some reason JEdit hijacked my ctrl+alt+j combination to start up, where can I change this (to Windows + J for example?)? It's quite an important shortcut for me in other programs, and I couldn't find it quick enough in the global settings, and didn't disable the shortcut on stopping JEdit Server Sad so I had to uninstall unfortunately.

Thank you in advance...

Wiebe Tijsma
One-stage save breaks hard links
Submitted by Dan Hetherington on Friday, 19 October, 2007 - 02:35
I know that the docs claim that if you turn off the "two-stage save" mode, jEdit should preserve hard links and file ownership and so on, but this doesn't work for me. If I save a file that is hard-linked from elsewhere, the link is always broken as if I had two-stage save turned on. Can anybody else repeat this?

I'm using 4.2Final with Kubuntu 7.04 and Java version 1.4.2-02.
newbie
Submitted by am33n on Sunday, 21 October, 2007 - 10:17
Hello guys

I downloaded jedit to use for my java programming studies! I use mac but i have no clue how to run the program!! I dont know how to compile, where to write the java code, its a bit confusing, it doesnt look like this picture http://jedit.org/index.php?page=screenshot&image=22

P.S. im just starting my "hello world" program.

thanks
JCompiler problem
Submitted by Freddie The Fish on Sunday, 21 October, 2007 - 16:35
I have just downloaded JEdit and the JCompiler plugin. When I try to use JCompiler I get a BeanShell error followed by the message - Java Core Plugin. The "Default" service is not available. Possibly the plugin providing it has been unloaded or removed. Switching to default.
I would guess that I'm missing something that is basic but I am obviously quite thick and any help would be most appreciated.
Syntax highlight
Submitted by gregus on Tuesday, 23 October, 2007 - 06:52
How do I get to the class or method that control the Highlight. when you save as "example.java" the extension will know that it is a java program other extensions are Java,xml,php, perl.etc. example of what I am saying is below.

public SyntaxStyle getStyle()
{
if(!okClicked)
return null;
Color foreground = (fgColorCheckBox.isSelected()
? fgColor.getSelectedColor()
: null);


When I save a new file as "example.java" Those color on public, getsysle etc. should not appear again.

I have tried all the GlobalOptions, SyntaxHillit, and others I cannot find it. I am a babe learning.
C# question???
Submitted by jimmygyuma on Wednesday, 24 October, 2007 - 18:10
I know, I know, this is a jEdit forum. But I have gotten no help from MSDN C# forum or CodeGuru C#.

I use jEdit to edit the pages on my website. I am in the process of putting up the pages of a logbook. I have written a program in C# to help me write those pages; basically I fill in a lot of blanks and the program writes and saves the .html page. I have a button to open the page in IE to see if it looks alright, and I have another button which is supposed to open the file in jEdit for editing. It is this button that is giving me problems.

It opens the file in a new instance of jEdit, instead of in the running instance of jEdit. Well, actually it opens the file in both the running instance and the new instance. And the new instance has all the same files open as the running instance. Dopey.

I don't want to open a new instance of jEdit, I want the file to open in the already running instance.

If anyone has any experience with C# or the .NET framework and can tell me how to do this, I would be very grateful.

I guess I should have written the thing as a jEdit plugin to begin with, but that would have required learning how to write a plugin and relearning Java.

Thanks,
Jim
Macro problem on self-built jEdit
Submitted by jedi on Thursday, 25 October, 2007 - 20:46
I checked out the HEAD from svn (rev 10955) and it compiled without errors. However, when I'm running it (ant run) it gives me errors from some of the built-in macros. For example:

Sourced file: /Users/jedi/projects/jedit/jEdit/build/macros/Editing/Emacs_Next_Line.bsh : Command not found: setAccessibility( boolean ) : at Line: 16 : in file: /Users/jedi/projects/jedit/jEdit/build/macros/Editing/Emacs_Next_Line.bsh : setAccessibility ( true )

Emacs_Next_Line works fine if I use it in the latest release (4.3pre1).

Has something been changed in the beanshell & macros since the latest release and how do I fix this?

Thanks!
Surround selection with string (Surround.bsh v1)
Submitted by vdichev on Monday, 29 October, 2007 - 11:31

This script is designed to help with inline markup of strings for reStructuredText, AsciiDoc, txt2tags, or other similar Lightweight markup languages. Of course, you can use it on *any* plain text where you want to convey extra meaning to the contents.

Similarly to the XML plugin, it can surround multiple selections with the string requested by the user (by default, an asterisk- "*"). To be accepted as valid markup, though, the string must be at the start or end of the word, so the macro inserts the string at the closest word boundary without shrinking the selection. The selection is preserved, making it easier to apply another markup command afterwards.

Unlike the Add_Prefix_and_Suffix.bsh macro, this one operates on selections, not selected lines.

mysql tables problem
Submitted by sirfaber on Friday, 2 November, 2007 - 00:33
I just figured out that there is a problem in table definition... actually, mysql script used to create tables contains some odd field name (eg: "index") and mysql report an error. If it's correct it's necessary to change db init script and tables references in the code.
Selecting/Excluding lines of text
Submitted by jurrie on Friday, 2 November, 2007 - 16:59
When analyzing log files it can be handy to run with split views with each view being restricted to a particular subset of lines from the file in question. I'm trying to do something like this with jEdit and am looking for some guidance to steer me in the right direction. A search of the User's Guide and this forum didn't yield any obvious answers, possibly due to my use of inaccurate search terminology. Here goes:

1. how can I display only lines which match a certain search string (or pattern) ?
i.e. Show only lines with contain the string "MyLogEntry:"

2. how can I restrict the display content to only those lines which do not meet some exclusion content?
Ideally I'd be able to add and remove display filter restrictions dynamically.
i.e. Only show lines which do not contain the string "ComponentA:" nor the string "ComponentD:" nor the string "ComponentZ:"

In both of these cases I'd like to maintain the buffer's gutter and the ability display the original line numbers.

Is there a standard jEdit means of doing this?

Any guidance would be appreciated.
Saving & Editing Read-Only Files
Submitted by drperrier on Sunday, 4 November, 2007 - 18:58
I want to edit and then save a read-only file and I can't seem to do this. The "Read Only" macro built in only seems to work one-way and trying beanshell and entering buffer.setReadOnly(false) doesn't work either. Trying the search here at the community only turned up hits for people trying to make files read-only.

Is there a simple way to edit and then save read-only files in JEdit? Textmate and even Smultron will let me edit read-only files and then save them by authenticating myself as the root user inside the program. I'd like to stick with JEdit.

I'm running JEdit 4.3pre11 on Mac OS 10.4.9 and am dealing with a ruby directory I created as the root user in a unix window.

Thanks
Cannot see contents of Samba share
Submitted by Slav Erik on Tuesday, 6 November, 2007 - 09:30
Hi,
I'm running Ubuntu 7.10 on my workstation, and most of my files are on my server(running ubuntu 6.06). I connect via a Samba share which is mounted at boot.
I installed jEdit via the .deb install using synaptic, and it appears to work great apart from one major issue, I cannot access any of my work files. The samba share appears but when I click on it it is shown as empty. I've turned off the two step save incase thats the problem but still no go.
Any help at this point would be much appreciated as it's taken me quite some time to find an IDE as good as phpEdit that runs on Linux.
Thanks.
CtagsSideKick case insensitive tag sort?
Submitted by colinl on Thursday, 8 November, 2007 - 16:36
Hi
I use CtagsSideKick with C++, it is excellent. Unfortunately I have legacy code that is inconsistent in the case of function names. When I sort tags by name it correctly but non-intuitively (for me anyway) sorts all functions starting in upper case before those starting in lower case. Is there a way of getting it to ignore the case?
Thanks
jEdit java source files
Submitted by vikki_pu on Monday, 12 November, 2007 - 05:32
Hello ,I want to know that where I get the Java source files of jEdit editor or like as DrJava,J,eclipse etc...
Anyone know the Url or link so please tell me.
Thanks in Advance..
User login
Browse archives
« October 2007 »
MoTuWeThFrSaSu
2
4
5
6
7
8
10
11
12
13
15
16
20
22
26
27
28
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   108250
Context Free Art (*.cfdg)   0.31   46071
BBEdit scheme   1.0   18607
JBuilder scheme   .001   18508
ColdFusion scheme   1.0   18041
R Edit Mode - extensive version   0.1   17488
Advanced HTML edit mode   1.0   16222
Matlab Edit Mode   1.0   16086
jEdit XP icons   1.0   15245
XP icons for jEdit   1.1   14309