use special keys for macro execution
Submitted by
bjoern_jedit on
Monday, 6 September, 2004 - 14:00
Hi, it might sound a little crazy (although I have
serious applications in mind) but I need to
get jedit to make a backslash when typing
the following two keys at the same time:
Left-Windows-special-key german-umlaut
I managed to get a backslash when typing
A+n for example. However the windows special
key seems not do work for that nor do the
german special keys.
I would really appreciate any suggestions !
RegEx: look-behind-Assertions are buggy
Submitted by Anonymous on Tuesday, 7 September, 2004 - 00:49
When i search the word "foobar" for
foo(?=bar)
jEdit delivers "foo" as a result, which is right.
However, when I search for (?<=foo)bar, i get the following error Message, although i'm pretty sure my RegEx is OK so far.
gnu.regexp.REException: At position 1 in regular expression pattern:
quantifier (?*+{}) without preceding token
at gnu.regexp.RE.initialize(RE.java:509)
at gnu.regexp.RE.(RE.java:269)
at gnu.regexp.RE.(RE.java:254)
at org.gjt.sp.jedit.search.RESearchMatcher.(RESearchMatcher.java:57)
at org.gjt.sp.jedit.search.SearchAndReplace.getSearchMatcher(SearchAndReplace.java:293)
at org.gjt.sp.jedit.search.SearchAndReplace.find(SearchAndReplace.java:446)
at org.gjt.sp.jedit.search.SearchDialog.ok(SearchDialog.java:199)
at org.gjt.sp.jedit.search.SearchDialog$ButtonActionHandler.actionPerformed(SearchDialog.java:936)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
why do the docks always open?
Submitted by Anonymous on Tuesday, 7 September, 2004 - 02:03
i have a shortcut key (f4) set to run an AntHelper task. i also have AntFarm docked on the left and Console and ErrorList docked on the bottom. if i have all docked windows closed and push the f4, the AntFarm and Console popup open.
is there some way to suppress this?
There is abolutely no reason for the left dock to open. I have to close it everytime at the cost of extra mouse work. And I would actually only like to see ErrorList if there are errors. Otherwise, nothing should come up in the bottom dock either. (However, if the Console must open, i can live with that, probably.)
Thanks for any and all help!!!
XSearch options in 4.2final don't appear in search box
Submitted by
Andre on
Wednesday, 8 September, 2004 - 06:57
The additional check boxes (e.g. word part search) don't appear in the search box despite all options being selected in the Options:Plugin:XSearch box. The search box is the standard one, working fine but without the extensions.
My system: jEdit 4.2final, Win XP pro, JRE standard edition 1.4.2_03
Thanks for help.
Note: jEdit and the plugins are great tools and a pleasure to use. Thanks.
Andre
How to associate files with jEdit ?
Submitted by
lasterix on
Wednesday, 8 September, 2004 - 08:09
Hi,
I 'd like to know how to associate ".txt" or others, files with jEdit (I want to open the file with jEdit when I double clic on it).
Thanks.
How should I view java applets
Submitted by Anonymous on Wednesday, 8 September, 2004 - 11:20
This is probably dead easy but, is there a simple way to view java applets from within jEdit? At the moment I leave jEdit open a Command Prompt window and use appletviewer or I run the html document.
Comando file for Intel fortran compiler
Submitted by Anonymous on Wednesday, 8 September, 2004 - 12:25
Hi, the comando file for intel fortran compiler ifort would be nice thing to have!!
CompleteWord.InsertSelected could check the value of IgnoreCase
Submitted by
dvht on
Wednesday, 8 September, 2004 - 15:30
When I type "proc" and then press C+b in PL-SQL editmode, it gets completed with "EDURE", forming the (correct) keyword "procEDURE". I know, I could type "PROC" and it would be "PROCEDURE" and if I wanted "procedure", I could change PL-SQL.xml accordingly. But why not check for the last letter typed, and add an uppercase version or an lowercase version of the substring.
Personally, I wouldn't replace the whole word with the text case used in the xml, because that would look like "parsing" (ask VB developers, they use this all the time) and then the case should also be changed for completely typed words.
Dirk
Superscript plugin - I don't get it
Submitted by
PauloSargaco on
Wednesday, 8 September, 2004 - 15:33
Hi there.
I installed superscript and downloaded js.jar from Mozilla's Rhino. I then copied js.jar to {jedit.home}/jars and restarted jEdit. I also changed the superscript optins so that js is recognized as a macro extension. When I use superscript it seems that nothing useful happens. For instance, if I use the text box in the superscript docking window, when I type 2 +2, what I get in the results window is just an echo of what was typed:
-> 2 + 2
same thing with every instruction like parseInt("qwq123").
I also tried opening a js script with jEdit and using the Execute Script button. Nothing happens.
I must be missing something really obvious.
Expand the Span
Submitted by
RaeVanMorlock on
Wednesday, 8 September, 2004 - 16:53
I just found out about jEdit last night and I like it more than my previous editor; however, it's HTML syntax highlighting is lacking. So I endeavored to improve upon it. I got lists of all the elements and tags according to the HTML 4.01 specs and entered them as keywords, but problems occur distinguishing the two. For instance, "style" can be both a tag and an element.
I decided that the best approach would be to use regexp to highlight things according to their positions within a tag.
Element -- </({0,1}\w+?)
Attribute -- <\w+?(\s+?(\w+)=".+?")*>
[Note: I'm not sure that the question marks should be there, I just read in the Help Docs that "if a repeating operator is immediately followed by a ?, the repeating operator will stop at the smallest number of repetitions that can complete the rest of the match" so I hope I'm understanding that correctly.]
So the problem currently is that this doesn't really work for two reasons.
1) The SPAN_REGEXPs are set to highlight everything that matches them, but we need to specify stuff that needs to come before and after the attribute in order to be sure that we have an attribute. A solution could be to only highlight what is matched by the innermost parentheses when they exist. An option to toggle this behavior may also be needed in case someone needs to specify a repeating pattern but still highlight the entire regex.
2) Using regex under the main rules will include searching of things outside of the HTML tags. By making a ruleset to apply only to things inside HTML tags, you can get better results. But then, the 'greater than' and 'less than' signs cannot be used in the matching. So what I'm trying to suggest here is that the BEGIN and END sequences are included.
For a simple demonstration of what I'm trying to say, Consider this abbreivated mode file:
<SPAN TYPE="MARKUP" DELEGATE="TAGS">
<BEGIN><</BEGIN>
<END>></END>
</SPAN>
<RULES SET="TAGS" DEFAULT="MARKUP" ESCAPE="\">
<KEYWORDS>
<KEYWORD1>xxx</KEYWORD1>
</KEYWORDS>
</RULES>
And this source code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
</html>
Now if xxx were replaced with "<html" to ensure that only the HTML tag (and not the instance of "html" within the !DOCTYPE tag) is highlighted--it wouldn't work because in ignores the BEGIN and END marks. Of course, if this did work properly then the < sign would also be highlighted, which is not the enteded behavior. That's why this is just a simplified example of the behavior that I'm talking about and why using regex and highlighting the inner-most parenthesis would be a better way to handle this.
So with the way it currently behaves, you would have to replace xxx with "html" to see any type of result. In this case, the instance of "html" within the !DOCTYPE tag is also highlighted. This may not seem like terribly bad behavior, but it is when applied to "style" because you can have:
<STYLE type="text/css">
H1{ font-size: 10pt; }
</STYLE>
and:
<span style="font-size: 10pt">
Which clearly shows that "style" can be both a tag and an element, but it will have the same format applied regardless.
I hope I explained everything clearly here. I'll try to check back frequently to answer any questions.
Jedit strangely slow
Submitted by Anonymous on Wednesday, 8 September, 2004 - 18:27
I’ve been using Jedit for several years now on a number of different machines. I recently installed Jedit 4.2 final on a PIII 1.2ghz 512meg RAM notebook. I am having severe performance issues for some reason. For example, if I hit carriage return, I get a full 1 second pause before that action takes place on jedit. Similarly, I get a full 1 second pause when scrolling in the buffer (a full 1 second pause between each step in the scroll). Each time, my javaw process spikes the CPU to 100%. It spikes for even only 1 single carriage return in a new file with no other files open in the other tabs. Even the menus are slow I've uninstalled all extra plugins, so I don't think any of those were the culprit.
I have tried this with Java 1.4.2_05 as well as J2SE 5.0rc. I have tried this with Jedit 4.2final, as well as 4.2pre15 and 4.2pre14, with the same problem.
Does anyone have any suggestions? I use Jedit 4.2pre11 all the time on my notebook at home, which is a 1.4ghz mobile P4 with 512 … without _any_ problem. I simply can’t figure out what is happening. Any help would be much appreciated. Using something other than Jedit really isn't an option for me -- I've used it for so long and found it fits my needs perfectly! NOthing else even compares. I hope I can get it working on the machine here at work.
Function notification?
Submitted by Anonymous on Thursday, 9 September, 2004 - 03:06
Im looking to see if there is a plugin, or feature that will tell me what Functions are in the file i have open as well as tell me which function im currently in.
Example text:
function Something()
{
# when typing in here it would tell me im in Something.
}
And then i would imagine there being some sort of drop down list that i can see the functions in the file, and be able to select one and be taken to the first line of that function.
Thanks for your help in advance!
Using maven to build jEdit
Submitted by Anonymous on Thursday, 9 September, 2004 - 07:13
Hi,
I think moving the build system over to maven will make a lot of difference.
jEditInstaller can't find JRE on WinXP?
Submitted by Anonymous on Thursday, 9 September, 2004 - 13:44
Trying to install using jEdit42Install.exe on WinXP. When I click the executable, I get the following message:
Setup unable to find a Java Development Kit or Java Runtime 1.3, or higher, installed. You must have installed at least JDK or JRE, 1.3 or higher to continue setup. Please install one from http://java.sun.com and restart setup.
I do indeed have JRE 1.3 installed on this system. In fact, when I install using the jEdit42Install.jar, I can use jEdit just fine. How do I trick the installer into recognizing that I have 1.3 installed?
Alternately, if anyone can tell me how to create a windows batch file that accepts command line options (e.g., jedit.bat -e file.txt), I'll be just as happy. Thanks!
Code aid and code completion
Submitted by
rcosta on
Thursday, 9 September, 2004 - 16:56
I'm using the Language FlagShip, very similar to Foxpro, in Linux. I already made a custom mode for syntax but now I want more. I'm trying to get code completion working or at least something like VB does showing a yellow floating box with the parameters of a function when we write the name of that function or with the properties and methods of a class when we write the name of an object of that class.
I've been walking around sidekick, codeaid, ctags, codebrowser and other plugins but still I don't guess how to do this in jEdit.
What plugin should I use and how can I configure it.
Thanks
Rui Costa
Problem with Tildes and accents in Mac OS X
Submitted by Anonymous on Friday, 10 September, 2004 - 00:59
Hi,
I tried the Mac Os X package and the Java-based installer and I have the same problem with that. Both of them was the 4.2 Final version.
I can read accents and tildes from a file created in other text editor, but I can't type accents and tildes with the Keyboard. So, I can't type characters like à or á.
I'm using Mac Os X 10.3.5
In my settings I've the Keyboard as Spanish ISO, I tested with Spanish non-ISO but it doesn't solve the problem.
jEdit is a great Text Editor, but I need to resolve it for use this Editor in my projects.
jEdit 4.2 Mac OS X package
Submitted by
krisk on
Friday, 10 September, 2004 - 10:03
There were some errors in the original Mac OS X package, including an old Mac OS Plugin. You can find the new version on the
downloads page. If the file you have downloaded is jedit42.dmg (3437443 bytes), then you do not need to worry about downloading it again.
C# support
Submitted by Anonymous on Friday, 10 September, 2004 - 13:17
Does anybody use jEdit to develop in C#? I am quite new to jEdit and don't know how to force it to simply compile and run a code. Thanks for help.
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?