Advanced EVAL in commando
Submitted by Anonymous on Sunday, 12 September, 2004 - 12:12
Very common is that some control in commando is populated using EVAL attribute, for example to populate "Source file" control, write EVAL="buffer.getPath()" as an attribute of the FILE_ENTRY element (BTW, commando.dtd is wrong and says that no such element is allowed, but all works).
What if I want to write some EVAL-expression that has quotes inside, for example buffer.getPath().endsWith(".java") ? buffer.getPath() : "" ? Can anybody help me?
Stateless Console and how to overcome it
Submitted by Anonymous on Sunday, 12 September, 2004 - 19:09
When I want to compile C# source code within jEdit I encounter a problem with nonpersistent (stateless) Console plugin. Every command is executed in newly initialized shell which is a big problem for .NET Framework SDK. It uses sdkvars.bat to estabilish development environment within the shell (it sets apropriate paths etc.) but this settings seems to be valid only for one session. For example to compile "source.cs", i need to write:
...> sdkvars.bat
[some output from the bat]
...> csc source.cs
But how can I acomplish this within
stateless console plugin?
Auto-Indent for parentheses and operators?
Submitted by Anonymous on Sunday, 12 September, 2004 - 22:08
Is there a way to get jEdit to auto-indent using certain characters on the previous line as a guide? E.g. not having to press tab or make leading spaces while typing:
if(a == b
&& a == c
&& b !=c)
cout << "Oh my god, " << endl
<< "this makes no sense!" << endl
<< ((1 + 2 + 3
+ 4 + 5 + 6)
/ 20.0) << endl;
emacs does some of this in it's c++ mode: '<<' automatically aligns with the first '<<' on the previous line, and anything after an unmatched '(' auto-aligns with the character after that '('. Or maybe you have to press tab to prompt it, but then it automatically finds the correct place to put it.
jEdit seems cooler than emacs, though, so it would be nice if there was a way to get it to do this! It would save a lot of time for me...if it's not possible now, would this sort of thing be possible with a plugin?
Using maven to build jEdit
Submitted by Anonymous on Monday, 13 September, 2004 - 01:17
I think moving the build system over to maven will make a lot of difference.
Using maven to build jEdit
Submitted by Anonymous on Monday, 13 September, 2004 - 01:23
I think moving the build system over to maven will make a lot of difference.
Deprecation warnings in building jEdit
Submitted by
clim1219 on
Monday, 13 September, 2004 - 05:26
There are 25 deprecation warnings in compiling jEdit.
What should be specified in "Connect directly to" in Http proxy?
Submitted by Anonymous on Monday, 13 September, 2004 - 07:28
Dears,
I'm behined a proxy server and want to specify the authentiaction in JEdit 4.2 final edition.
What is the value that should be written in "Connect directly to"?
Thanks,
Ashraf Fouad
Syntax Highlighting (package org.gjt.sp.jedit.syntax) - How?
Submitted by Anonymous on Monday, 13 September, 2004 - 10:25
API changes for v 4.2 include the following:
>The org.gjt.sp.jedit.syntax package can now be used in other programs.
>All you need to provide is error handling and logic for locating the
>XML mode files. See the package documentation for details
I don't really understand how I can use the package in my own program.
The comments within the API doc are pretty short :-|
Do I just have to use my own JEditTextArea instance? Maybe some of you
have already tried this feature and could give me some advice.
Many Thanks,
Felix
Encrypt current buffer (Encrypt_Current.bsh v0.1 by David Mlejnek)
Submitted by
davo on
Monday, 13 September, 2004 - 16:41
Encrypts the current buffer content. The physical file content will not be modified until user saves the buffer. Uses PBE with MD5 and DES algorithm. Macro will prompt the user for a password which will be used to encrypt the buffer content.
Decrypt current buffer (Decrypt_Current.bsh v0.1 by David Mlejnek)
Submitted by
davo on
Monday, 13 September, 2004 - 16:44
Decrypts the current buffer content. The physical file content will not be modified until user saves the buffer. Buffer must be encrypted with Encrypt_Current.bsh. Uses PBE with MD5 and DES algorithm. Macro will prompt the user for a password which will be used to decrypt the buffer content.
Rename Current Buffer (Rename_Current.bsh v0.1 by David Mlejnek)
Submitted by
davo on
Monday, 13 September, 2004 - 16:49
Renames the current buffer.
Plugins for Java
Submitted by Anonymous on Tuesday, 14 September, 2004 - 10:20
Hi.
I use JEdit for writer my applications in java but I don't know the esencials plugins for java.
What's the essencital plugins for programing for java at the moment I use JCompiler.
PS: Sorry for my english but I'm spanish.
Using arrays in macros ...
Submitted by
Lee Elms on
Tuesday, 14 September, 2004 - 13:49
I am trying to create an array in a BeanShell macro, e.g.:
int pos[] = new int[4];
gives an error:
Encountered "[" at line 13, column 8.
How do I successfully create an array of 'int' ?
what happened to indentation (out)lines?
Submitted by
mcmilwj on
Tuesday, 14 September, 2004 - 15:41
I recall a few releases ago (maybe it was a beta I was using) that there was a capability to have indented blocks outlined with a vertical gray lines in the text edit area. I no longer see a way to activate this feature. Is this implemented by a plugin or was it deemed to problematic and therefore removed? Here's hoping it is still possible and I've just missed some obvious setting.
JDocs Search (JDocs_Search.bsh v1.0 by Lee Turner)
Submitted by
lturner on
Wednesday, 15 September, 2004 - 14:03
Beanshell macro to search JDocs (http://www.jdocs.com). It utilises the InfoViewer Plugin to display the jdocs page and can work a selection in the jEdit textarea or prompt you for a search item if no selection is made.
jedit as editor for ftp-clients?
Submitted by
saneinsane on
Wednesday, 15 September, 2004 - 14:12
i'd like to use jedit as editor for ftp clients on mac. but if i choose jedit as editor in interarchy and try to edit online files, jedit opens a downloaded copy of the file instead of opening it via ftp. any suggestions?
Mark Pages
Submitted by
bstegman on
Wednesday, 15 September, 2004 - 14:14
I've looked for this feature but haven't found it, but I would love it if I could mark pages as I'm working on updates for projects so I know what files I need to update on the live server. Would love to hear any suggestions too....
Large Mode file -- real slow
Submitted by
floriangrimm on
Wednesday, 15 September, 2004 - 15:49
i add serval keywords to the mode/python.xml file (common libraries & methods)
all as keyword3 (filesize*=2.5)
display is really slow
complete word works only for word defined before
e.g.
OK
abcd
ab[cd]
Wrong
ab[] -- abcd is NOT shown
abcd
CPU is not too bad, Java/Jedit-Memory is really big
any idea - i would try to fix if somebody give me a hit
XHTML XInsert Script (xhtml.insert.xml v0.3 by Daniel E. Markle)
Submitted by
Lexiyntax on
Wednesday, 15 September, 2004 - 16:08
This script for the XInsert plugin makes it quick and easy to build compliant xhtml 1.0 and html 4.0 strict files. All html tags are in lowercase as required by the xhtml spec, and it tries to provide convenient prompting for required elements in tags. To use it, just copy it to your XInsert script location (~/.jedit/xinsert/ on Linux or OS X) and click reload in XInsert.
How to write a macro to Change Auto-Indent Behavior?
Submitted by
drefty on
Wednesday, 15 September, 2004 - 21:45
PROBLEM:
There is one frustrating aspect of auto-indentation
with jEdit that I would like to change with a macro.
Here is some sample text to demonstrate what I am
talking about. ...
1Potato
2Potato
3Potato
4Potato
1Watermellon
2Watermellon
3Watermellon
4Watermellon
If you put the cursor before "1Watermellon"
and then press ENTER, jEdit will auto-indent
to make it the same indentation level as
"4Potato".
This is contrary to what I'd expect because I'm trying
to insert some blank non-indented lines in between 'potato'
and 'watermellon'. I am *not* trying to make watermellon
indented beneath potato.
The problem seems to be that jEdit does auto-indentation
based on the previous *non-blank* line, instead of just
the previous line.
QUESTION:
How can I change this behavior with a macro or with other
means, short of recompiling jEdit.