jEdit Community - Resources for users of the jEdit Text Editor
Archives
ToggleHeaderSource.bsh 0.4 (Toggle_Header_Source.bsh v0.4 by Alan Ezust)
Submitted by AlanEzust on Wednesday, 9 November, 2005 - 15:09
A jedit beanshell macro that toggles your current buffer between the header file (.h) and the source file (.cpp). Enables you to switch the current text buffer between c++ header and sourcecode file. If the file does not already exist, it opens a buffer of that name for you (!). Version 0.4 also works with other filename extensions (.c, .cxx).
Scheme indenting
Submitted by dhracer on Thursday, 10 November, 2005 - 11:43
Hi there,

I've been using jedit for a short while now for various languages and on the whole I am very pleased but there is one thing that bugs the hell out of me. If I am writing scheme then it indents the closing bracket for me, but I don't want this. Is there any way to change it?

Example (the # characters represent spaces, current operation is first - desired is second):

(if (= i 10)
##(begin
####(do something)
####)
##)

what I want is:

(if (= i 10)
##(begin
####(do something)
##)
)

Thanks in advance!
How to shortcut temporary splits/unsplits?
Submitted by davmay on Thursday, 10 November, 2005 - 17:25
When the user splits a view, little wedges pointing up, down, left or right are displayed at the upper left-hand corner of the panes. These are very handy in expanding the current pane and then restoring it to its previous configuration. I would like to create keyboard shortcuts for these useful functions, but I haven't been able to identify the commands by looking in the shortcuts list or in the API list. Can anyone tell me what these commands are called, and if they can be activated by a user shortcut?
How to shortcut temporary splits/unsplits?
Submitted by davmay on Thursday, 10 November, 2005 - 17:26
When the user splits a view, little wedges pointing up, down, left or right are displayed at the upper left-hand corner of the panes. These are very handy in expanding the current pane and then restoring it to its previous configuration. I would like to create keyboard shortcuts for these useful functions, but I haven't been able to identify the commands by looking in the shortcuts list or in the API list. Can anyone tell me what these commands are called, and if they can be activated by a user shortcut?
Change from 2 monitors to 1 monitor will result in an hidden search window (still on mon 2)
Submitted by Augur on Thursday, 10 November, 2005 - 20:20
Hi.

If I deactivate my second monitor in XP the search window still stays on the deactivated screen. How can I get it back without the use of an second monitor?

THX, Nils
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)
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   107463
Context Free Art (*.cfdg)   0.31   46069
BBEdit scheme   1.0   18605
JBuilder scheme   .001   18505
ColdFusion scheme   1.0   18039
R Edit Mode - extensive version   0.1   17486
Advanced HTML edit mode   1.0   16220
Matlab Edit Mode   1.0   16084
jEdit XP icons   1.0   15243
XP icons for jEdit   1.1   14306