Mode Syntax Options - Positional Modes
Submitted by
DStaal on
Friday, 23 September, 2005 - 14:48
I do a lot of work with EDI at work, and I've been trying to write a mode for it, but I keep running up against JEdit's mode syntax. It just doesn't support what I need.
EDI is a positional syntax, with fields being of fixed or semi-variable length, seperated by a delimiter. The delimiter itself is variable: While there are supposed to be specific choices, in reality any punctuation character has probably been used. To complicate things more, EDI has the concept of 'segments', which are often seperated by line breaks, but not always. (There again, any punctuation character should probably be considered valid, though in both cases it will stay constant within a file.)
So, ideally, I'd like to match the first few characters to a sequence, then use the next character as a delimiter (whatever character that is), then divide the rest of the file into fields by that character. A known number of fields from the start I can find the segment delimiter, which I would like to use as a line-ending. (In the cases where it isn't, there is usually no other line ends in the file.) Also, I'd like to be able to highlight as tokens certain fields, counting from line/segment-ends.
Problem is, there is no good way to do this in mode-syntax. I can highlight the delimiters, by entering a list of the common ones, but any attempt to highlight what is *within* them meets with problems. The most common problem is that the delimiters can only be part of *one* match. So, for instance, a 'span' rule will only match every other field.
Some of the 'interesting' fields of EDI have specific values, which I can then sequence-match, but many do not.
So, some specific suggestions:
- A delimiter-count match. Choose a delimiter, and match specific sequences divided by that delimiter. (And, possibly, end-of-lines). The delimiter itself is not part of the sequence matched, or at least can be applied a seperate token.
- An extension of the 'Terminate' rule, allowing termination at a specific character (or even regrex) instead of at a specific position. Again, the option to 'eat' the matched character or not.
- A property/rule to allow/force wrapping on specified non-whitespace characters.
- The ablity to _disallow_ wrapping on whitespace characters.
These may not be the best way to approach the problems, but they are rules that I can think of that would help. EDI itself does not have the concept of escape characters, but I can imagine that would be a useful addition to a delimiter rule.
Case INsensitive autocomplete
Submitted by
rwprogrammer on
Friday, 23 September, 2005 - 15:38
Is there any option to make the autocomplete feature in jEdit ignore case?
I.e., right now if I have the word "Something" in the buffer, and I type "some" and try to use autocomplete, it will not list "Something" as an option because I began the word with lower case. However, I WOULD like it to list "Something" in this case.
It should be a mode-dependent setting as to whether or not the autocomplete feature is case sensitive.
Installing Ruby Plugin! Yea, i followed all instructions!
Submitted by
naive on
Saturday, 24 September, 2005 - 06:51
Hi all,
First i installed JEdit. Then i followed all instructions at this page http://www.jedit.org/ruby/download/
No somehow i can smell some problem here. I don't think its installed properly. Whenever i
-Open menu Utilities->Global Options
-Go to Shortcuts
I don't see 'Plugin: RubyPlugin' here. Why ? I also tried to install RubyPlugin 0.6.6 by clicking the following link
http://www.jedit.org/ruby/download/RubyPlugin_0-6-6.jar
but i always get an error page.
Folks please help me in installing this ruby pluggin. I would really appreciate your time and help. Any help will be highly appreciated.
Regards,
-Naive
retrieve the values from the jEditor
Submitted by
balase on
Monday, 26 September, 2005 - 12:53
Hi,
I want to retrieve the values in the jEitor (what ever we typed in the editor) and store into a database.
if any body have this idea, then can you tell me?
Thanks & Regards,
Balamurugan SE
Editmodes for SwitchBuffer (EditmodesForSwitchBuffer.jar v0.1 by Jeroen Budts (TeRanEX))
Submitted by
TeRanEX on
Monday, 26 September, 2005 - 21:38
A dataprovider for the new SwitchBuffer, which is currently in beta and can be found here, to make it possible to change the editmode of a buffer, by using SwitchBuffer.
You can get the source by using DARCS:
$ darcs get http://dev.budts.be/darcs/jedit/EditmodesForSwitchBuffer
Also available from http://dev.budts.be/releases/jedit/EditmodesForSwitchBuffer/
expanded right- click menu
Submitted by
vupt on
Tuesday, 27 September, 2005 - 00:09
I really like how easily you can customize the right-click menu and add your own shortcuts. But a feature I think would be really nice would be to have submenu items within the right-click menu. And so you can group shortcuts within a submenu.
For example, when you right click the mouse you would see something like this:
Menu1>
Menu2>
Anything with a ">" indicates a submenu. And then when you click on Menu1, you would see its submenu.
Menu1 >
shortcut1
shortcut2
Menu2 >
regards,
Phong
Location of JDK
Submitted by
naugiedoggie on
Tuesday, 27 September, 2005 - 01:32
When I try to run JCompiler, it gives me an error saying that my 'java.home' appears to be "C:\Program Files\Java\jre1.5.0_04". Where is it getting that from? It's not from my environmental settings:
powem@PDXPOWEM01 [ ~ ]
--> echo $JAVA_HOME
C:\Program Files\Java\jdk1.5.0_04
c:\src>set
CLASSPATH=C:\Program Files\MySQL\mysql-connector-java-3.1.10;
JAVA_HOME=C:\Program Files\Java\jdk1.5.0_04
I've looked in various properties files and can't find any place to set this value. Any help would be appreciated.
Thanks.
mp
what is initail value to jEdit.java ! where it is? ! how its pass !
Submitted by
balase on
Tuesday, 27 September, 2005 - 06:18
hi,
any one can explain how initial value pass to the jEdit.java (command line arguments) program and where you get that initial value? what is that file name?
thanks
Balamurugan SE
How convert string to number.
Submitted by
Driezas on
Tuesday, 27 September, 2005 - 07:24
Hi all,
Currently i'm trying to write macro to convert degrees to decimal form and back and have some problems. Input is string and I need convert that string after splitting into parts to numbers, but macro ends with error complaining that unable to casto sting to integer. parseInt also not working. What's wrong ?
Thanks for answers
Here is code:
void convert_coordinates() {
private int Laipsniai;
if (textArea.getSelectedText().contains(" ") == true ) {
format = 1;
Macros.message(view,"Degrees");
} else {
format = 0;
Macros.message(view,"Decimal degrees");
};
switch (format) {
case 1:
Elements = textArea.getSelectedText().split(" ");
Laipsniai = Elements[0];
Macros.message(view,"Laipsniai: "+Laipsniai);
textArea.setSelectedText(Laipsniai);
break;
case 0:
Elements = textArea.getSelectedText().split("[.,]");
textArea.setSelectedText("1:"+Elements[0]+" 2:"+Elements[1]);
break;
};
}
if (textArea.getSelectedText() == null) {
Macros.error(view,"No coordinates selected !!!");
} else {
convert_coordinates();
};
RubyPlugin - No Interpreter Defined
Submitted by
guivho on
Tuesday, 27 September, 2005 - 07:56
Using jEdit to edit Ruby source code, using the RubyPlugin 0.6.9, I try to run the current buffer, e.g. by launching run from the action Action Bar. This causes following popup: 'No Interpreter Defined - There is no interpreter associated with this buffer. You can specify interpreters on a mode-specific basis in the Utilities->Global Options dialog box.'
For one, I would expect that the RubyPlugin would define ruby as the interpreter for ruby mode buffers.
For two, I have looked in vain through the Global Options dialog and I can not find an option to define compilers/interpreters on a mode-specific basis. I feel so stupid, as I have seen that panel while I was initially playing around with jEdit. But I can't find it anymore!?
Can anybody give me a pointer?
TIA, Guido
Geo coordinates converter macro (Coordinates_convert.bsh v1.0 by Rolandas A.)
Submitted by
Driezas on
Wednesday, 28 September, 2005 - 12:53
This macro converts geografical coordinates between degree.decimal and degree minutes seconds.decimal formats and vice versa. Created primary for X-plane flightsim related development. Maybe will be usefull for anyone.
If you have any comments or suggestions contact me by email rolandas dot ananijevas at gmail dot com.
Cannot find CatalogManager.properties
Submitted by
HolyBastard on
Wednesday, 28 September, 2005 - 13:22
I'm using jEdit under linux redhat enterprise 3 I have XML plug-in 0.13 and sidekick 0.3.4 and I consistanly get thoses messages:
[error] AWT-EventQueue-0: Cannot find CatalogManager.properties
[error] AWT-EventQueue-0: Cannot find CatalogManager.properties
[error] AWT-EventQueue-0: Cannot find CatalogManager.properties
[error] SideKick #1: Cannot find CatalogManager.properties
[error] SideKick #1: Cannot find CatalogManager.properties
It doesn't seems to do anything but its really annoying and i was wondering how I could fix this.
Thanks in advance for your help.
HolyBastard
Compared to phpeclipse and PHP Designer 2005
Submitted by
Peter Mount on
Thursday, 29 September, 2005 - 07:34
Hello
I've been using phpEclipse but I've been looking at PHP Designer 2005. How does jEdit compare to these for php development?
I've found Eclipse can be a unstable in that I have to periodically re-install it in Windows. Plus I currently only have a Pentium 2 at home.
I've also got Netbeans 4.1 loaded for JSP2/Servlets
Thanks
Peter Mount
Timeouts in downloading plugins
Submitted by
Peter Mount on
Friday, 30 September, 2005 - 00:52
Hi
I tried using the plugin manager to install 11 plugins through my dial up modem at home. I had trouble as I kept getting a timeout message so none of the plugins downloaded. Could this be a problem with the server?
Thanks
postgresql.Driver not found
Submitted by
payx on
Friday, 30 September, 2005 - 06:51
Hi,
I use Win2k SP4, jEdit 4.2final, PostGreSQL 8.0.3.
DB Terminal Plugin does not connect to my PostGreSQL-DB showing the error-message cited in the subject.
I have tried postgresql-8.0-312.jdbc3.jar and postgresql-8.1dev-401.jdbc3.jar in \jEdit\jars.
I will be greatful for any hints.
payx
Submitted by Anonymous on Thursday, 1 January, 1970 - 00:00
n/a
making the ALT key sticky
Submitted by
McSwell on
Monday, 3 October, 2005 - 12:41
In all other applications that I use under Windows, touching and then releasing the ALT key makes the menu bar active, with the "accelerator" keys for each main menu item underlined or highlighted.
This doesn't work under jEdit--the only way to get to a menu item (at least for mouse-phobic people like me) is to hold the ALT key down while guessing the letter for the main menu item (F for File, E for Edit, etc.).
Is this a property of jEdit, or of Java? Is there a way to fix it (and I do mean "fix", since I believe the sticky-ALT behavior is standard in MS-Windows)?
Problem with editing mode syntax hilighting (assembly-r2000 [mips])
Submitted by
ian_stanton on
Tuesday, 4 October, 2005 - 15:34
I've encountered a problem with syntax highlighting and MIPS assembly language.
I use the assembly-r2000 editing mode and it works almost perfectly, except that the register name $t0 is not being coloured up. All other registers as far as I can see are coloured green except this one which stays black.
If your not familier with using registers replace that word with variable names.
I was hoping to find someone that has some experience with using jEdit for writing mips code or someone with experience of editing syntax specifications so that I could possibly alter the program to include the register $t0.
Any help or advice would be greatly appreciated. At the moment I feel like I'm missing something obvious since it seems a silly thing to be happening.
OEM 2 ANSI
Submitted by
jaguar080 on
Tuesday, 4 October, 2005 - 20:58
Hi, it would be great to be able to read the DOS/OEM character set, and to convert it to ansi characters and vice versa.
How does JEdit find available fonts under *nix?
Submitted by
pachanga on
Wednesday, 5 October, 2005 - 08:02
Guys, i'm switching from windows to Debian 3.1 and having different little yet annoying issues trying to make JEdit operate exactly the same way as it does on my XP box.
I'm almost there but there's one problem which i can't resolve myself - fonts.
For some reason JEdit doesn't show fonts i copied from XP while KDE and GNOME have no problems with that. What can be causing this?
I'm using JEdit 4.2 final with j2sdk-1.4.2.06...