jEdit Community - Resources for users of the jEdit Text Editor
Archives
Macros encoding
Submitted by jojaba on Sunday, 13 November, 2005 - 07:10
Hello,
I'm translating jEdit 4.2 in french (see the link in my signature).
someone use my translation on unbutu (Linux) and said that the accentuated caracters didn't display correctly especially the title of the *.bsh files (macros) and the tips. I do think that's a problem of encoding.
How do I resolve this problem ?

Thanks a lot.
How to recover original abbrevs file?
Submitted by davmay on Sunday, 13 November, 2005 - 19:14
I am running jEdit 4.2 on Windows XP. I have made changes to the abbrevs file and now I would like to recover a copy of the default abbrevs file as it came with the original jEdit source files. I'm not familiar with the syntax for working with Java files -- can someone provide me with a command-line for extracting the original abbrevs file from the source files, or show me some other way of doing this? Thanks.
Native file dialog selector
Submitted by hakimm on Sunday, 13 November, 2005 - 20:06
Hello

jEdit is great, but is there a switch somewhere to use a native OS file selector instead of the default java file selector ? I know the default java one can be extended beyond what a native selector could do, but right now the default in 4.2 is quite restricted, for example it doesn't support right-click contextual menus.

thanks
haki
autodetect encoding for html file
Submitted by neoedmund on Tuesday, 15 November, 2005 - 09:27
in fact i have made one, if you think useful you can add this feature to new jedit versions. it find text like "content="text/html; charset=xxxxxx"" at the begin of the html.
[code]
BufferIORequest.java
    /**
     * Tries to detect if the stream is gzipped, and if it has an encoding
     * specified with an XML PI.
     */
    private Reader autodetect(InputStream in) throws IOException {
        in = new BufferedInputStream(in);

        String encoding = buffer.getStringProperty(Buffer.ENCODING);
        if (!in.markSupported())
            Log.log(Log.WARNING, this, "Mark not supported: " + in);
        else if (buffer.getBooleanProperty(Buffer.ENCODING_AUTODETECT)) {
            
            {// neoe add: detect html's encoding
                String enc = getHtmlEncoding(in);
                if (enc != null && MiscUtilities.isSupportedEncoding(enc)) {
                    buffer.setProperty(Buffer.ENCODING, enc);
                    return new InputStreamReader(in, enc);
                }
            }
	....
	(original lines)

/**add by neoedmund*/	
private String getHtmlEncoding(InputStream in) throws IOException {
        String enc = null;
        String key = "charset=";        
        int bufSize=1000;
        byte[] buf = new byte[bufSize];
        in.mark(bufSize);
        int len;
        if  ((len = in.read(buf,0,bufSize)) >0) {
            String line=new String(buf,0,len);    
            int p1 = line.indexOf(key);
            if (p1 >= 0) {
                int p2 = p1 + key.length();
                p1 += key.length();
                if (line.charAt(p1) == '\'' || line.charAt(p1) == '"') {
                    p1++;
                }
                while (p2 < line.length()
                        && "'\" >;,.".indexOf(line.charAt(p2)) < 0) {
                    p2++;
                }
                if (p2 <= line.length()) {
                    enc = line.substring(p1, p2);
                }
            }
        }
        in.reset();        
        return enc;
    }
[/code]
jedit doesnt work!!
Submitted by asiam on Wednesday, 16 November, 2005 - 04:19
hi
i installed both of the java-based and windows installer.
no problem appeared when installing both of them but
when i tried to open JEdit it didnt worked.
when i try to open the JE file, an icon appears on my desktop and nothing happens after that.
could anyone help me pls about this issue.!!
i tried to restart my computer but nothing changed!!
jedit doesnt work!!
Submitted by asiam on Wednesday, 16 November, 2005 - 04:19
hi
i installed both of the java-based and windows installer.
no problem appeared when installing both of them but
when i tried to open JEdit it didnt worked.
when i try to open the JE file, an icon appears on my desktop and nothing happens after that.
could anyone help me pls about this issue.!!
i tried to restart my computer but nothing changed!!
Trouble with templates plugin
Submitted by Richard_UICI on Wednesday, 16 November, 2005 - 20:20
I have downloaded the templates plugin, but it refuses to retrieve a template from the template tree. Whenever I try, I just get a dialog box with a red stopsign in it and an OK button, and nothing else. This happens with even the simplest of templates -- just a line or two of text with no directives.

Otherwise it seems partially functional -- for instance, I can save templates and view them in the template tree. I'm using the latest stable build of JEdit, 4.2, and Java runtime 1.5.

Anyone have any ideas?
Syntax highlighting for YACC ( Bison ) grammar files. A small patch. (yacc.xml vv1.0.1 by Brad Mace)
Submitted by Siver on Thursday, 17 November, 2005 - 09:31
Syntax highlighting for YACC ( Bison ) grammar files. Now it's compartible with jEdit 4.2f
Submitted by Anonymous on Thursday, 1 January, 1970 - 00:00
n/a
Copy to clipboard from console
Submitted by gerke.kok on Thursday, 17 November, 2005 - 15:17
It would be handy when I could copy text from the console-plugin to the clipboard. Somehow this is not possible at the moment.
(I'm using Windows XP and JVM 1.4.xxx)
can't run
Submitted by akurashy on Friday, 18 November, 2005 - 06:19
GC Warning: Out of Memory! Returning NIL!
GC Warning: Out of Memory! Returning NIL!
GC Warning: Out of Memory! Returning NIL!
GC Warning: Out of Memory! Returning NIL!
GC Warning: Out of Memory! Returning NIL!
GC Warning: Out of Memory! Returning NIL!
GC Warning: Out of Memory! Returning NIL!
GC Warning: Out of Memory! Returning NIL!
GC Warning: Out of Memory! Returning NIL!
GC Warning: Out of Memory! Returning NIL!
GC Warning: Out of Memory! Returning NIL!
Segmentation fault
Jedit Single Instance
Submitted by rem on Sunday, 20 November, 2005 - 23:24
Hi everybody,

Just got to use Jedit and already think it's a great tool... However, I was wondering, is there a way to keep only one instance of Jedit open? If I choose to open a file assigned to Jedit from other location than File / Open I would like to have it within the same instance on another tab.

Thanks a million.
Continual Memory Growth under OS X
Submitted by jpavel on Monday, 21 November, 2005 - 06:17
Hello,

I'm running jEdit 4.2 under Mac OS X 10.3.9 with Java v1.4.2_09. I've passed an "-Xmx32m" switch to the JVM when I run jEdit, but nonetheless, its memory usage, as reported by the Activity Monitor, continues to grow as I use it over a number of hours, from ~50MB to about ~150MB and still slowly moves upwards. Given that I've capped the JVM heap, where is this consumption coming from? Does anyone else experience this, or know how to deal with it?

Thanks!
Autocompletion?
Submitted by sillydragon on Monday, 21 November, 2005 - 17:20
I've noticed when I edit XML or HTML files, if I enter part of a tag a scrollbox will pop up offering me possibilities for completing the tag... Where does it get the information for that? I'm making an edit mode for another language and I'd like to add autocompletion of function names, but can't seem to figure out where to configure that. I thought it was Accelerators, but my template folder is empty. Thanks in advance for any help. Smiling
coping marked word to search-next
Submitted by liran vigdor on Tuesday, 22 November, 2005 - 09:58
how do I mark a word and then just automatically fills it into the Find-next option ?
( used crimson editor before, and u just mark a word,and click search-next - it automatically search for the next marked word)
error when using the project viewer plugin
Submitted by SBrightman on Wednesday, 23 November, 2005 - 10:10
I am using jedit on Windows XP System.

i do the follow:
Plugins -> Project Viewer -> Create Project

if i do this i get the error shown below.

java.lang.NoClassDefFoundError: org/gjt/sp/jedit/PluginJAR
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2170)
at java.lang.Class.getDeclaredMethod(Class.java:1712)
at bsh.Reflect.findAccessibleMethod(Unknown Source)
at bsh.Reflect.invokeMethod(Unknown Source)
at bsh.Reflect.invokeStaticMethod(Unknown Source)
at bsh.Name.invokeMethod(Unknown Source)
at bsh.BSHMethodInvocation.eval(Unknown Source)
at bsh.BSHPrimaryExpression.eval(Unknown Source)
at bsh.BSHBlock.eval(Unknown Source)
at bsh.BshMethod.invokeDeclaredMethod(Unknown Source)
at bsh.BshMethod.invoke(Unknown Source)
at org.gjt.sp.jedit.BeanShell.runCachedBlock(Unknown Source)
at org.gjt.sp.jedit.BeanShellAction.invoke(Unknown Source)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(Unknown Source)
at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2167)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.Component.processMouseEvent(Component.java:5465)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3089)
at java.awt.Component.processEvent(Component.java:5230)
at java.awt.Container.processEvent(Container.java:1961)
at java.awt.Component.dispatchEventImpl(Component.java:3933)
at java.awt.Container.dispatchEventImpl(Container.java:2019)
at java.awt.Component.dispatchEvent(Component.java:3781)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4205)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3885)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3815)
at java.awt.Container.dispatchEventImpl(Container.java:2005)
at java.awt.Window.dispatchEventImpl(Window.java:1764)
at java.awt.Component.dispatchEvent(Component.java:3781)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

thanks
steve
Placing selection in clipboard after replacing certain characters
Submitted by ghoetker on Thursday, 24 November, 2005 - 15:29
Hi all. I'm trying to write my first macro and am stuck at multiple points. The task at hand is this. I have text in jEdit of the following format

file write `output' _tab ///
`mformat' (`r(sd)') _tab `mformat' ///
(`r(max)') _tab

I would like to be able to select this text, have the "///" and new_line characters stripped, and the remaining text put in the clipboard, so I can paste it into another application. Thus, the line I would be pasting would be

file write `output' _tab `mformat' (`r(sd)') _tab `mformat' (`r(max)') _tab

I have the sense that the code to do this would be pretty simple, but I'm stuck since it's my first attempt. Could anyone provide me some help?

Thank you in advance.
XML Plugin download corrupted
Submitted by mickmon on Saturday, 26 November, 2005 - 03:17
FYI -
NOt a jEdit bug as such, but I'm not sure where else to log it...

I tried downloading multiple times the XML plugin from the "Plugin Central Default" mirror.
Each time I got an I/O zip-file problem.

There was no such problem when I changed mirror to the Dublin/Ireland one.
JCompiler slowing key response
Submitted by cburbeck on Tuesday, 29 November, 2005 - 14:32
I'm running JEdit 4.2 on a mac mini with Tiger( OSX 10.4.2), using the JCompiler, Console, and ErrorList plugins. After I run an app from the Console, subsequent key response in JEdit slows to the point where its unuseable. The quirky thing is that going to PlugIn Options>JCompiler>GeneralOptions and clicking OK, without making any changes, brings response time back to normal. I'm using the default error parsing options:
Regexp for errors (.+):(\d+)Sad.+) (The unhappy faces were originally colons followed by left parens)
FileName at $1
Line number at $2
Message at $3
Regexp for warnings: (.+(note|warning|caution):.+)|(.+deprecated.+)
Is there something in my setup that could account for this?
Lahey-Fujitsu Fortran 95 Commando File (lf95.xml v1.5 by Christos Tsironis)
Submitted by ctsir on Tuesday, 29 November, 2005 - 15:58
Compiles the current buffer using the Lahey-Fujitsu Fortran compiler. Works under Linux (not tested yet in Windows). Contains the most frequently used options for the compiler (for the rest of the options see lf95 --help).
User login
Browse archives
« November 2005 »
MoTuWeThFrSaSu
 
1
4
5
6
8
11
12
14
19
25
27
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