jEdit Community - Resources for users of the jEdit Text Editor
Archives
Validating XHTML5: how do I add the custom datatypes from the Nu Html Checker (v.Nu)?
Submitted by Graham Hannington on Monday, 22 February, 2016 - 05:10
I would like to use the jEdit XML plugin to validate XHTML5 using the RELAX NG schema from the Nu Html Checker (v.Nu):

https://github.com/validator/validator

I have downloaded the RELAX NG schema files from the v.Nu GitHub repo, and set the schema (Plugins > XML > Set Schema) for a sample XHTML5 document to refer to the XHTML5 RELAX NG schema.

As I expected, jEdit reports the following error:

> datatype library "http://whattf.org/datatype-draft" not recognized

due to the following line in the schema files:

datatypes w = "http://whattf.org/datatype-draft"

I know that I need to make available to jEdit - in its class path - a .jar that contains the datatype library, as described in:

http://www.thaiopensource.com/relaxng/pluggable-datatypes.html

but so far, I've been unsuccessful. I'm a newbie Java developer, so I am very likely missing something obvious, but I thought this would be relatively straightforward, because both jEdit and v.Nu use Jing, so I thought it would simply be a matter of copying the relevant files from v.Nu to jEdit.

I've taken the latest-release vnu.jar and stripped everything out of it except:

\META-INF\services\
org.relaxng.datatype.DatatypeLibraryFactory

that contains the lines:

com.thaiopensource.datatype.xsd.DatatypeLibraryFactoryImpl
nu.validator.datatype.Html5DatatypeLibraryFactory

and

\nu\validator\datatype\
Html5DatatypeException.class
Html5DatatypeLibrary.class
Html5DatatypeLibraryFactory.class

but I don't know how to add that .jar to the jEdit class path (I'm using jEdit 5.2.0 with XML plugin 2.8.7 - I know, not quite the latest - on Windows 7). I don't know how to tell jedit.exe to add the location of this .jar to its class path. Whatever I try - adding a classpath option to the jEdit.l4j.ini file, or defining a CLASSPATH environment variable - the jEdit activity.log reports:

Log: java.class.path=C:\Program Files\jEdit\jedit.jar

I even tried copying the contents of my "cut down" vnu.jar into jedit.jar, to no effect.

I'm stumped. How do I add the custom datatypes from v.Nu to jEdit?
on font aliasing (again) under Linux
Submitted by xenthar on Sunday, 29 May, 2016 - 09:54
There is *not* a lot of activity here.

When I search for font aliasing support under Linux, I find very diverse topics and messages everywhere and most of them are really old.

I will just say now that on my Ubuntu (Kubuntu) 16.04 system, in KDE, the actual configuration dialog looks good. But the actual text, as well as the interface.... even when using identical files (fonts) as other (KDE) programs, looks readily different and very ugly.

In general such things happen more in Linux (KDE) particularly when using some old GTK app (I think). Moreoever, some Linux distributions appear to have no good fonts at all; it seems and is sometimes said that only Ubuntu has good font support; my latest adventure into OpenSUSE was abysmal in that regard and full of problems.

For me a very complicated topic and I cannot see the forest for the trees.

Fonts that look AMAZING in e.g. "Kate" look abysmal in jEdit, and have very different font width, font spacing, etc.

I will post a screenshot later when I get down to it.

The difference is just outstanding and the minute anti-aliasing that I can detect in jEdit screenshots just doesn't cut it.

It is so bad that I even refuse to use jEdit even though it has been my favourite java editor since like forever. I now edit in console-mode Vim and only use jEdit for copy & paste operations, in general.

It is just horrid. This has been going on for such a long time in Linux, and when I see the instructions for jEdit of the past, I get sick in the stomach to begin with.

So I wonder if anyone can tell me in advance, before going through all that, if any of those instructions are still current?


I have attempted "http://jedit.9.x6.nabble.com/jEdit-fonts-on-Ubuntu-Linux-td1823304.html" but none of it did anything.

Meaning, this line:

exec java -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -jar /usr/share/jedit/jedit.jar org.gjt.sp.jedit.jEdit -reuseview "$@"

doesn't change anything.

So I don't know what to do. I haven't tested anything else like NetBeans.
InfoViewer Plugin: UnsupportedClassVersionError...Unsupported major.minor version 51.0 exception in jEdit 5.1.0
Submitted by JonBlanchard on Tuesday, 12 July, 2016 - 14:31
Hello:

I am getting the above error and was wondering if there is a more recent version of the PlugIn available.

Thanks in advance for your response.

JB
Is it possible to remove/hide scroll bars?
Submitted by maurelioc on Friday, 5 August, 2016 - 01:01
Hi folks,
I want to know if it is possible to remove or hide the scroll bars as it is possible with gutter bars.
I could not find any command for this.
FTP plugin opened files
Submitted by mca on Saturday, 19 November, 2016 - 19:07
I've been using this plug-in for remotely editing files and it works fine. The only trouble I have is that after I closed jEdit, I have to reopen each file I was working with.
Does anyone know a way to remember the opened files remotely as it happens with local files? Tks.
samba share erroneous files changed on disk by external program
Submitted by xenthar on Tuesday, 20 December, 2016 - 12:32
I recently started using a samba share (I don't know what version) being mounted from Windows.

There is probably a slight second delay in the date Samba registers for the file and the date my Windows has, or something like that. But jEdit continuously says that something changed my file, when nothing happened.

Is this a bug with jEdit? Is this expected behaviour?
Default encoding for a mode
Submitted by Llelan D. on Saturday, 24 December, 2016 - 07:01
How do I set the default encoding for an edit mode?

For example: I want to create a new document in the current edit mode (CS-n) Erlang. The encoding for Erlang documents should automatically be UTF-8. This should be separate from any global default encoding.

However, I can find no way to set a default encoding for an edit mode separate from the global default encoding. This is so fundamentally obvious that I'm still looking for something I've missed.
Elixir edit mode
Submitted by Llelan D. on Saturday, 24 December, 2016 - 07:03
Is there an Elixir edit mode? I see there is an Erlang mode, which is similar but not this same and is very primitive.
Right to left supprt
Submitted by wkevils on Saturday, 21 January, 2017 - 10:26
Does jEdit support Right to left typing ? I could not find any support for it, and no plugin for this.

Kevin
TextAutocomplete
Submitted by CJreige on Saturday, 11 March, 2017 - 14:44
Has anybody had any luck installing the TextAutocomplete plug-in lately? I cannot get the Plug-in Manager to download it (it gives a download error). When I download it manually and try to install it, it doesn't really work within jEdit. I just wanted to see if anybody has had any luck with this plug-in.

Thank you,
CJ
TextAutocomplete
Submitted by CJreige on Saturday, 11 March, 2017 - 14:45
Has anybody had any luck installing the TextAutocomplete plug-in lately? I cannot get the Plug-in Manager to download it (it gives a download error). When I download it manually and try to install it, it doesn't really work within jEdit. I just wanted to see if anybody has had any luck with this plug-in.

Thank you,
CJ
jEdit 5.4.0 is out!
Submitted by Vampire on Saturday, 18 March, 2017 - 20:18
Hello everyone,

I proudly present jEdit 5.4.0, the first stable release of the 5.4 series of jEdit.

This is mostly a bugfixing and stabilizing release. Detailed changes can as always be found in the Change Log at http://jedit.org/CHANGES54.txt, but here are some of the major changes of this version:
  • Use of Java 1.8
  • Use of a new XML format for Plugin Manager, and proper following of redirects, resulting in a much improved plugin install experience
  • New Printing, updated for current versions of Java


Volunteers are always welcome to contribute to the future of jEdit:
http://www.jedit.org/index.php?page=devel


That being said, here is the download link:
http://www.jedit.org/index.php?page=download


Have fun with the new release.
Lucene Wildcard Searches
Submitted by weberjn on Tuesday, 21 March, 2017 - 12:16
Hi,

for me the killer feature of jEdit is LucenePlugin. Lucene searches some 15 years of project notes for me, each year a simple 1MB .txt file.
You could well advertise more for LucenePlugin...

Anyway, looks like you cannot search wildcards or regular expressions (Standard Analyzer).

Of the Term Modifiers from the Lucene docs, only some terms work for me, Wildcard, Regular Expressions and Fuzzy Searches do not get accepted, the plugin simply does nothing.
Actually, I use mostly Proximity Searches, which still help a lot.

What did I do wrong?

And could you list some working search expression examples in the Plugin Help, please?

http://lucene.apache.org/core/6_4_2/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#Term_Modifiers
jEdit Server under OSX
Submitted by RobertX on Friday, 31 March, 2017 - 15:00
At work, on Windows, I create a startup shortcut that starts the jEdit server in the background and keeps it running. Is there a similar process to get that to work on OS X?
Set encoding option in "Mode Settings"
Submitted by RobertX on Friday, 31 March, 2017 - 15:38
There should be another option under "Mode Settings" to set the default encoding for individual file types.
Hypersearch results analysis (hypersearch_results_parsing.zip v1.0 by Thiemo Kellner)
Submitted by Robert Schwenn on Thursday, 13 April, 2017 - 21:04
Two neat macros to analyse hypersearch results:

- hypersearch_results_distinct_hits.bsh: extracts the distinct lines in the results
- hypersearch_results_files.bsh: extracts all the files results were found in

! Note that these macros depend on:
- other macro "Misc/HyperSearch_Results_to_Buffer.bsh"
- TextTools Plugin

Also, see original post: https://sourceforge.net/p/jedit/patches/545/
jEdit Server on OSX
Submitted by RobertX on Friday, 21 April, 2017 - 00:26
When I run jEdit on Windows, I create a shortcut and put it in the Startup folder that runs the jEdit server in the background. I have zero idea on how to do this on MacOS. Any help?
jEdit hangs when using multiple screens
Submitted by rursus on Friday, 21 April, 2017 - 12:17
Hi! Jedit version tested: 5.4.0 (compiled from source) Java version: java-1.8.0-openjdk-amd64 (Debian) I have tried to find any relevant info by googling, but I couldn't find any: * Whenever I run jedit on a single screen, there are no problems, and life is happy and the sun shining. * Whenever I run jedit on a computer using multiple screens, jedit cannot be started, or if it is already started before, and the second screen is attached afterwards, jedit refuses to open any new windows. When refusing to open any window, jedit says: 13:55:29 [AWT-EventQueue-1] [error] AWT-EventQueue-1: Exception in thread "AWT-EventQueue-1" 13:55:29 [AWT-EventQueue-1] [error] AWT-EventQueue-1: java.lang.IllegalArgumentException: Width (0) and height (0) must be non-zero 13:55:29 [AWT-EventQueue-1] [error] AWT-EventQueue-1: at java.awt.image.ReplicateScaleFilter.(ReplicateScaleFilter.java:102) ... 13:55:29 [AWT-EventQueue-1] [error] AWT-EventQueue-1: at sun.awt.X11.XToolkit.createCustomCursor(XToolkit.java:1140) 13:55:29 [AWT-EventQueue-1] [error] AWT-EventQueue-1: at org.gjt.sp.jedit.textarea.TextAreaPainter.addNotify(TextAreaPainter.java:181) 13:55:29 [AWT-EventQueue-1] [error] AWT-EventQueue-1: at java.awt.Container.addNotify(Container.java:2773) ... 13:55:29 [AWT-EventQueue-1] [error] AWT-EventQueue-1: at javax.swing.JComponent.addNotify(JComponent.java:4740) 13:55:29 [AWT-EventQueue-1] [error] AWT-EventQueue-1: at org.gjt.sp.jedit.textarea.TextArea.addNotify(TextArea.java:4690) 13:55:29 [AWT-EventQueue-1] [error] AWT-EventQueue-1: at java.awt.Container.addNotify(Container.java:2773) ... 13:55:29 [AWT-EventQueue-1] [error] AWT-EventQueue-1: at java.awt.Window.pack(Window.java:807) 13:55:29 [AWT-EventQueue-1] [error] AWT-EventQueue-1: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2617) 13:55:29 [AWT-EventQueue-1] [error] AWT-EventQueue-1: at org.gjt.sp.jedit.PerspectiveManager$PerspectiveHandler.endElement(PerspectiveManager.java:363) Which obviously means that when jEdit makes a newView, it obviously triggers a TextArea.addNotify which triggers a TextAreaPainter.addNotify, which somehow delivers a window with a size of 0,0. I'm inclined to hack this in my personal copy of jEdit, if possible. Anyone have an idea why this occurs?
Write current date/time to a file as it is saved
Submitted by jhaefner on Sunday, 23 April, 2017 - 01:00
I am writing html and would like to write "Updated: ...the date of last modification.." on to the html file in a particular place. So, after testing that the file has been modified, I would like to write the current day and time to the file immediately after I tell Jedit to save the file, but before it is actually saved. Possibly, the solution would be to point my usual "save file" shortcut to a macro that writes the date/time info where I want it and then does the jedit save file command. Has anyone done this? If not, can any one point me in a direction to get me started? I have done simple ".bsh" macros, but nothing more complex. I am aware of Robert Schwenn's 2008 "insert_simple_date.bsh".

Thanks in advance. Jim
ReadOnlyBuffer (Macro) not working with jEdit 5.4
Submitted by Hans_Bauer on Friday, 19 May, 2017 - 11:30
Using the MacroManager i downloaded the "ReadOnly Buffer"-Macro and associated a Toolbar-Icon with it.

The Macro does not seem to do anything in jEdit 5.4.

Possibly there is a code change in jEdit, because my own-written macro "ToggleReadOnlyBuffer" also stopped working after the update from jEdit 5.3 to 5.4.

Any idea to update the macro "ReadOnly Buffer"?

Thanks Hans
User login
Browse archives
« January 2016 »
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   82338
Context Free Art (*.cfdg)   0.31   46042
JBuilder scheme   .001   18486
BBEdit scheme   1.0   18107
ColdFusion scheme   1.0   18015
R Edit Mode - extensive version   0.1   17461
Advanced HTML edit mode   1.0   16194
Matlab Edit Mode   1.0   16056
jEdit XP icons   1.0   15220
XP icons for jEdit   1.1   14281