jEdit Community - Resources for users of the jEdit Text Editor
Archives
JEdit as external editor in WinSCP
Submitted by JonathanNil on Monday, 2 October, 2006 - 15:26
I use JEdit on Windows. For software that let's you set an external editor 'helper', I like to use JEdit, but frequently have trouble figuring out how.

In particular, I'd really like to use it with WinSCP. Can anyone give me instructions on how to do it for WinSCP? Or any general tips or instructions for doing this generally on windows with jedit?

[The fact that it's a java app instead of a normal .exe is what is at the root of the problem, I guess.]
Probleme with AntFarm
Submitted by Manil on Tuesday, 3 October, 2006 - 16:07
Hi,

I am using AntFarm to compile CodeBrowser and i get the following error, it seems that ant is trying to compile with jdk 1.4 and i have 1.5 installed on my computer, I checked in my path and classpath and i have nothing that mention jdk 1.4, i never get it installed on my computer...Anyone have any idea??

C:\Program Files\jEdit 4.3pre6\CodeBrowser\trunk\com\bitart\codebrowser\CBLeaf.java:47: cannot access javax.swing.tree.TreeNode
bad class file: c:\program files\java\jre1.5.0_08\lib\rt.jar(javax/swing/tree/TreeNode.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
import javax.swing.tree.TreeNode;
can't reference schema using XML catalogs
Submitted by kefl on Tuesday, 3 October, 2006 - 18:51

I'm having trouble getting the XML plugin to use an XML catalog to locate the schema referenced by my document. Can anybody help? Assuming all three documents (document to be edited, referenced schema and XML catalog) are in the same folder, I would expect the following to work:

root element of edited document:
<Ace
xmlns="http://www.birdstep.com/xml/schemas/acedb"
xsi:schemaLocation="http://www.birdstep.com/xml/schemas/acedb http://www.birdstep.com/xml/schemas/acedb.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>

catalog element in catalog document:
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="public">
<public publicId="http://www.birdstep.com/xml/schemas/acedb" uri="acedb.xsd"/>
</catalog>

If http://www.birdstep.com/xml/schemas/acedb.xsd is not available, I would expect the editor to look up http://www.birdstep.com/xml/schemas/acedb in the catalog and so find acedb.xsd in the current folder.

What actually happens is that the editor returns HTTP 403. I've tried endless variations on the above setup, all with no luck...

PS. I have added my catalog to the list of catalogs in the XML plug-in's options.

jEdit is unbearably slow
Submitted by GCZFFL on Tuesday, 3 October, 2006 - 19:41
Newbie to jEdit here. Love what I see so far, but can't help but notice that it runs unbearably slow compared to other text editors. I'm talking about something in the realm of a two-second pause after the down arrow is pressed before the cursor moves down a line.

Using Windows XP Professional. Yes, I tried rebooting. Smiling

Ideas? Thanks in advance!

Joe
(X)HTML page template (xhtml page.vm v1.0 by De Franciscis Dimitri)
Submitted by megadix on Wednesday, 4 October, 2006 - 08:42
(X)HTML page template, with prompts for title, encoding, JS and stylesheet
HTML table template (html TABLE.vm v1.0 by De Franciscis Dimitri)
Submitted by megadix on Wednesday, 4 October, 2006 - 08:44
HTML table template with prompts for columns, rows, headers
HTML unordered list (html_UL.vm v1.0 by De Franciscis Dimitri)
Submitted by megadix on Wednesday, 4 October, 2006 - 08:47
HTML unordered list with prompt for number of items
HTML ordered list template (html_OL.vm v1.0 by De Franciscis Dimitri)
Submitted by megadix on Wednesday, 4 October, 2006 - 08:47
HTML ordered list template with prompt for number of items
Snippet Functionality
Submitted by kemitchell on Friday, 6 October, 2006 - 06:54
After being much inspired by Sune Simonsen's wonderful SuperAbbrevs, i decided i would try my hand at coding my take on the "Snippets" concept which seems to have become so popular (and expensive... trendy... dangerous? ;-P ) recently in light of the public's adoration for textmate and all things supernaturally shiny.

https://webspace.utexas.edu/kem642/www/Snippets_SRC.zip

i'm posting the code here in hopes that if i completely run out of time it will at least be available for posterity, BUT MORE OPTIMISTICALLY on the chance that one of you might take a brief look at it and point out where i might be going wrong api-wise, or where i've taken the decidedly more difficult path. For one things, my use of BufferChangeListeners seems to have become deprecated. Updates... the devil take them!

i'll likely hack away as time (and school) permit. I'll keep you all posted here, assuming this is the proper place to do so... (?)


A few noets:
I am working for compatibility with the current development version (4.3pre6), and have funcitoning (read: not well tested, but it "works for me and my limited imagination" (TM) ) solution for recursive snippets (use them inside of each other!) with end tags via a stack of insertions per buffer. the framework is in place to at least parse templates with named variables (i.e. with the same value), default values, and enumerated field values, but those remain broken for the moment in terms of actual functionality. The method of selection is currently a triggered inline popup which does a running filter and auto-insertion of the last match. Defining new snippets based on input not recognized there is planned, but not currently implemented (the method is called, but it doesn't do anything yet).

currently, the snippets are stored like /%userdir%/.jedit/snippets/%mode%/%name of snippet%.snip

there is no snippet editor or viewer in place (options panel) in place quite yet, but that ought to be trivial to pull off (or at least more straightforward).

the archive includes a buildfile i use to build the jar file when i compile. if you've got ANT and a JDK you shouldn't have any problems if you want to give it a whirl.

it ain't clean, but with a little time, it will ready to go soon enough.


thanks in advance for any help, direction, etc.
dont worry... you'll get thanked again, too!

~K
nested comments
Submitted by denserMan on Friday, 6 October, 2006 - 18:17
I have a hard time believing this hasn't been requested but I didn't find a request when I searched.

I would love to have nested comments highlighted. In particular, ColdFusion nested comments. I fiddled with the existing highlighting but couldn't make it work and now it looks like jEdit can't do that anyway.

Thanks!
XML Matching Tag Hilight not working again (pre7 and xml2.0.4)
Submitted by michaelyap on Saturday, 7 October, 2006 - 13:33
the XML plugin Matching Tag Hilight is not working again with html files. (jEdit pre 7 and xml v2.0.4)

it was working in pre6. i think this has been going on for the last several versions (of jEdit-pre and xml version). there's some kind of pattern here...
work. don't work. work. don't work. Smiling

i'm just reporting bugs. i can wait till november.

m
jEdit Snippets for Ruby on Rails
Submitted by charlesroper on Saturday, 7 October, 2006 - 18:32
I am trying to get hold of the jEdit Snippets for Ruby on Rails as seen here:

http://synthesis.sbecker.net/articles/2006/03/20/jedit-snippets-for-ruby-on-rails

But unfortunately the link appears to be down. Does anyone else have a copy of these snippets they could send to me or upload somewhere?

Many thanks,

Charles
Mac OS X
Submitted by TedErnst on Monday, 9 October, 2006 - 15:59
The FAQ talks about OS 8 and OS 9, but not OS X.

I have downloaded jEdit and it's "drive" appears on my desktop. What do I do with it? Other applications have something to drag to the applications folder and that's it. What do I do with this folder inside the drive?

Thanks!
Desperatly missing JCompile / Can't get JCompiler running
Submitted by JNewb on Monday, 9 October, 2006 - 19:44
Hello out there !

After a severe crash i had to put up an new system, and thought that i give 4.3 pre6 a try.
Looking good, goin' good - so far.
What i am missing is the JCompile-Plugin. Nowhere to be found an the Plugin-Managers "Install" Tab.

Has it just evaporated, replaced, obsoleted or am i just beeing blind ?

I quite miss it a lot - Newb that i am, i rely very much on the "Console"-Plugin and got so used to have the "JCompiler" in the pull-down-Menue; i usually work with two floating instances of "Console" - one for "System" the other, well "JCompile".

What happened ?

By the way - meanwhile i changed back to 4.2 (cause i had work to get finished) and find myself unable to get the "Jcompile" running properly.

The message is always the same :
.
java.lang.NoSuchMethodError: console.Console.setShell(Lconsole/Shell;)V
.
.

The message is quite a few lines i don't want to litter this forum with; if the complete message is needed i will put this in here later on.

When using the "compile" command within console, it goes on and on and on and on....nothing ! Not even an error-message.

As far as i see, there seems to be something wrong with the Console-Plugin (according to the message). Console seems to be unable to find the recent buffer-path automatically..hrmfp. Why ? No clue so far. When invoking "javac" by hand the path of the recent buffer is suggested within the "commando"-Box.

I tried to uninstall and reinstall the needed plugins - so far with no use.

I hope anyone stumbled across a similar (or the same) problem and was more sophisticated than me and solved it :/

Thx in advance,


JNewb
autotagging -> enclosure highlighted text with tags
Submitted by puntarenas on Monday, 9 October, 2006 - 23:47
Hi, I'm sure this came up a hundred times before and no doubt mighty Jedit is able to do it easily, so I'm sorry but I couldn't find an answer. I want to put tags around highlighted text using a keyboard shortcut. I tried Macros -> Text -> Insert tag, but using this macro I always have to type the tag name. Kind regards Martin
SideKick and edit modes
Submitted by shlomy on Tuesday, 10 October, 2006 - 07:07
My plugin, CtagsSideKick, registers itself as a SideKick parser (named 'ctags') for edit modes c, c++ and java using the lines below. If I open the "Parsers" page in the SideKick plugin options, I indeed see my plugin being used as the parser for these modes, and if I open files with extensions ".c", ".cpp" and ".java", I see that SideKick uses my plugin to generate the tree. However, when I open files with ".h" extension, no parser is selected, and the tree doesn't appear. I need to manually select 'ctags' in order to see the tree. Using the menu "Utilities -> Global Options -> Editing", I see that ".h" files are associated with the c++ mode. Yet my plugin is not used for ".h" files by default. Am I missing something, or is this a SideKick bug?

Following are the lines I use to register my plugin with SideKick:
sidekick.parser.ctags.label=ctags
mode.c.sidekick.parser=ctags
mode.c++.sidekick.parser=ctags
mode.java.sidekick.parser=ctags
Activate JEdit window when loading file
Submitted by agoston on Tuesday, 10 October, 2006 - 15:15
Hi!

When I start jedit with this command:
java -jar jedit.jar -reuseview filename.txt

(I'm using '-reuseview' to avoid that strange default behavior that a new jedit window opens with all the files opened so far plus the new one but the window previously used stays open, too.)

This way it is loaded in the existing jedit instance and no new window opens (very good), but the jedit window itself doesn't get activated. Which drives me mad, because I always have to select it with the mouse or alt-tab for half a minute until I find it. Is there any way to have that jedit window activated? What I've been thinking of is e.g. running jedit like this:

java -jar jedit.jar -run=On_Open_File.bsh -reuseview filename.txt

where On_Open_File.bsh would activate the window. I'm a complete beginner at BeanShell, so no idea about how to do that.

I'm using KDE on Linux, so a Linux-specific solution (activating the window from the command line or whatever) would do as well.

Thank you very much!
Agoston

P.S.: This select box ("Forum:") on my browser behaves a bit strangely, I wanted to select the "-Using jEdit" option, I hope I managed to.
Using two mode files for a single file type, e.g., MySQL
Submitted by a992400 on Tuesday, 10 October, 2006 - 15:25
Keyword highlighting is controlled by mode files specified in the file "catalog". For example: The MySQL keywords are specified in the mode file mysql.xml, and the standard SQL keywords are in tsql.xml. So when editing a MySQL file (*.sql), I want to have the MySQL and SQL keywords highlighted: But only the second one listed takes the fact,as if it overrides the previous one. How do I get both sets of keywords to be highlighted (short of manually jamming the two files into one, which surely can't be the best solution)?
How to autoreplace input?
Submitted by uhuebner on Wednesday, 11 October, 2006 - 13:29
Hi there,

I want jEdit to autoreplace my inputs depending on the Buffer Mode I'm in.

Example: When in PL/SQL-mode I want jEdit automatically replace the text 'ndf' with 'NO_DATA_FOUND' the very moment I type it. How do I do that?

Thanks
uhuebner
Enhanced PL/SQL Mode (pl-sql.xml v(taken fro by Uwe Pliha)
Submitted by uhuebner on Wednesday, 11 October, 2006 - 14:38
  • added all DBMS-Packages as keyword3
  • added all predefined exceptions as keyword4
User login
Browse archives
« October 2006 »
MoTuWeThFrSaSu
 
1
2
5
8
14
18
22
24
28
 
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