jEdit Community - Resources for users of the jEdit Text Editor
Archives
Adding a Mode via the Plugin
Submitted by billstei on Thursday, 9 December, 2004 - 03:36
Would it make sense, or is it already possible, to have a plugin add a mode to the catalog at runtime only, (i.e. it would not cause the catalog file to be modified)? In other words the API would have provision to create a new syntax highlight mode. The mode XML file could either exist as it does now and be loaded as part of the registering call, or the API would allow the XML definition to be passed in.
Auto-indentation in a new edit mode
Submitted by Anonymous on Thursday, 9 December, 2004 - 09:53
Hi, I've been writing an edit mode for the ABB RAPID industrial robot programming language. Just one thing outstanding - Auto Indentation

In UltraEdit, the following lines work. I need to do the equivalent in jEdit.
/Indent Strings = "ELSE" "ELSEIF" "THEN" "DO"
/Unindent Strings = "ENDIF" "ELSE" "ENDFOR" "ENDPROC" "ENDMODULE" "ENDWHILE" "ENDFOR" "ENDTEST"

Here are a few examples of how the RAPID code looks. Note there are no brackets used in structuring these statements in this language. Can jEdit handle this or not?

IF nCurrentTable=1 THEN
  pBegin1.trans.z:=nMaxDistT1;
  pEnd1.trans.z:=nMinDistT1;
ELSEIF nCurrentTable=2 THEN
  pBegin1.trans.z:=nMaxDistT2;
  pEnd1.trans.z:=nMinDistT2;
ENDIF

WHILE NOT ConditionsOK DO
  IF (diCtrl_Vacuum1=0 AND boEnable_Ch1=TRUE) RETURN TRUE;
  ConditionsOK:=TRUE;
ENDWHILE

FOR i FROM 1 TO 10 DO
  routine1;
ENDFOR

But the following "compact" (one-line) IF statement should not have the next line indented:
IF di3_LayerOrd=1 Layer;


Thanks for any help!

Andrew
Column mode bug?
Submitted by pdfneuro on Thursday, 9 December, 2004 - 09:57
Hi,

When I am in column mode, I can insert any character which are printed on each row of my column.. excpet tab. Hitting tab in colum mode add a tab on each row of the column, but then directly quit column mode.. why?
Is it a bug?

Bye
How to show the keyboard language selected
Submitted by Anonymous on Friday, 10 December, 2004 - 22:50
hi,
just want to know how to show the kind of keyboard I choosed when I do Ctrl-Shift. is it possible to place an icon or something else for to show that ?
thanks in advance.
help with windows, jedit.bat, and default text editor.
Submitted by Anonymous on Friday, 10 December, 2004 - 23:49
Was trying to do some tutorials on C++ maybe learn something. Started reading to look for a good freeware text editor (have used textpad in the past for php/htm editing, but don't have a liscense for it here). Stumbled across jedit on a google, so far I like it. Wanted to make it my default editor.

I can associate most anything I want with the jedit.bat file and it works fine. My only real question is, on the first instance of jedit I open up using this method, the DOS window does not go away. Any subsequent openings after the initial jedit launch, the DOS window goes away. And if I close the initial Jedit window, then the DOS window goes away with it. I can close the DOS window at anytime with no ill affects. Its only a minor inconvenience, but I am trying to learn something new and any ideas on how to make that go away would be appreciated Smiling

Thanks!

Mike
Help subsystem
Submitted by NovaX on Saturday, 11 December, 2004 - 02:12
I'm developing a web application using JSP/Servlets and I really like jEdit's help interface. I'd like to seperate it from jEdit and convert it into a servlet. I downloaded the source code, but all I can find are the XML/HTML help files, not the Java source. Could someone point me in the right direction?

Thanks,
Ben
Syntax highlighting - Tex for different languages than English
Submitted by Anonymous on Saturday, 11 December, 2004 - 14:43
Dear community,

I would like to suggest, that the highlighting of strings in Tex-mode can be switched
off, because there are extensions (specifically the german language extension) that use
double quotes as tool for displaying special characters. The jedit highlighting interpretes these quotes as beginning of a string and highlights the following parts in string coulour until an other accidental double quote appears.

Thanks for reading and for help, if something like that is already possible,
Mat
xml plugin bug ? (first element namespace)
Submitted by Anonymous on Sunday, 12 December, 2004 - 13:04
When a DTD (or a schema) defines a namesapce in the tag that declares it, XML Insert doesn't show the element tree. (it seems that it happens only for the root tag)

Similar problems have been reported here: http://community.jedit.org/?q=node/view/1262
and have been associated to Xerces but I am not sure this is true.

I haven't seen any solution to that.

Any ideas/help ?

Manolis
open file dialog box problem
Submitted by Anonymous on Monday, 13 December, 2004 - 02:48
hi, whenever i try to open a file, the dialog box or whatever you call it is messed up. the directory tree section is so compressed that nothing is shown, as is the other box and the filename box. they're all so squished that i can't see anything to open up. is there a way to fix this? thanks.
Sort_Lines.bsh v1.0 by Pascal Dal Farra
Submitted by pdfneuro on Monday, 13 December, 2004 - 09:11
Sort_Lines.bsh a BeanShell macro for the jEdit text editor which is able to sort lines in ascending/descending order. Available options are
  • Remove duplicated lines
  • Ignore case sorting
Sort_Lines.bsh
Submitted by pdfneuro on Monday, 13 December, 2004 - 09:21
Sort_Lines.bsh Hi, I just upload a jedit macro which is able to sort lines in ascending/descending order. Available options are
  • Remove duplicated lines
  • Ignore case sorting
Check it at http://community.jedit.org/?q=filestore/download/1943 and tell me if you find it usefull. Enjoy Smiling
Execute program from macro
Submitted by Anonymous on Monday, 13 December, 2004 - 14:29
Strangely enough I haven't been able to find how to do this simple task in the documentation or the FAQ:

How to I execute a program from a Macro?

(For running a compiler/make or an emulator/interpreter for the code or just somethin like a calculator).
compiling and running java programs !!
Submitted by ivan83sg on Tuesday, 14 December, 2004 - 06:24
Is there any plungins available for compiling and running java programs??

Thanks guys
Ivan
Is JEdit incompatible with my programming style?
Submitted by fmart on Tuesday, 14 December, 2004 - 17:08
Hello.
I'm new to JEdit (and Java) and I've found an annoyance in the way JEdit treats my programming style. It seams that everybody except I writes "obj.method/params)". I write "obj.method (params)" (note the space between "method" and "(".

Well, because of that, JEdit doesn't mark my method calls like so. I took a look on the Java mode file and discovered that the way JEdit highlights methods won't work for me because it uses (I think): ( But the space I put before "(" breaks this, because it separates the tokens.

Is there a way to avoid this problem besides changing my style? Am I the only sole with this style????


Thanks.
Helpfile integration
Submitted by Anonymous on Tuesday, 14 December, 2004 - 22:56
It would be nice to be able to have helpfile integration like UltraEdit. ie, double-click on a word and press F1 to bring up helpfile selection box [ PHP, Perl, C++, Java, etc... ] and then does a context-search for that word in the helpfile.
Highlighting numbers - problems with names using underscore + digits
Submitted by goebbe on Wednesday, 15 December, 2004 - 11:35
Hello,

I use the HIGHLIGHT_DIGITS="TRUE" attribute and have the following problem:

When using variable names which contains underscore + digits the
digits are highlighted.
For example:
variable_2 = 4;
Here the 2 and the 4 are highlighted.
Does anybody has an idea how to prevent the number after an underscore to be highlighted.

I already tried to fix the problem with the : DIGIT_RE= and the NO_WORD_SEP rules
unfortunately without the desired result.

Thanks a lot in advance
goebbe
Macro to Sort lines like in Ultraedit?
Submitted by pdfneuro on Wednesday, 15 December, 2004 - 13:56
Hi, What's cool with Jedit is that if you have a simple feature request, you can make it yourself.. I just upload a jedit macro which is able to sort lines in ascending/descending order. Available options are
  • Remove duplicated lines
  • Ignore case sorting
Check it at http://community.jedit.org/?q=filestore/download/1943 and tell me if you find it usefull. Enjoy Smiling
Macro to sort lines like in Ultraedit?
Submitted by pdfneuro on Wednesday, 15 December, 2004 - 13:57
Hi, I just upload a jedit macro which is able to sort lines in ascending/descending order. Available options are
  • Remove duplicated lines
  • Ignore case sorting
Check it at http://community.jedit.org/?q=filestore/download/1943 and tell me if you find it usefull. Enjoy Smiling
Macro to sort lines like in Ultraedit updated (Sort_Lines.bsh v1.1 by Pascal Dal Farra)
Submitted by pdfneuro on Wednesday, 15 December, 2004 - 17:12
Hi, Here is an update of the sorting macros This macro is able to sort lines in ascending/descending order. Available options are
  • Remove duplicated lines
  • Ignore case sorting
Enjoy Smiling
Upper/Lower/Invert/Capitalize Case Macros WHITHOUT unselecting text (CaseMacros.zip v1.0 by Pascal Dal Farra)
Submitted by pdfneuro on Wednesday, 15 December, 2004 - 17:25
4 separated macro that allows to change word case of selected text WHITHOUT unselecting text:
  • - Upper Case
  • - Lower Case
  • - Invert Case
  • - Capitalize Case
Enjoy :-)
User login
Browse archives
« December 2004 »
MoTuWeThFrSaSu
 
15
24
25
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   108249
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