V4.2: Syntax highlighting for nested quotes (re-entered with line breaks)
Submitted by
cpotting on
Wednesday, 8 December, 2004 - 02:38
Hello everyone, I am a new user to jEdit and love it. However, I am
having a problem trying set up the SPAN/SPAN_REGEXP to handle nested
quotes.
The language I am trying to handle is an implementation of Lua (CELX
scripting for the open source program Celestia), and allows the
double and single quotes to be included in strings using a backslash.
for example:
text = "the \" character is a quotation mark"
more = "hello"
The default rules for Lua highlights would cause - "the \" - to be
higlighted as quoted, - character is a quotation mark - to be treated
as code and - " more = " - to be highlighted as quotes.
Essentially, I need to jEdit to recognise that " and ' are only
quotes if they are not preceeded by a \. I tried using SPAN_REGEXP.
This worked for recognising the opening quotes, but since the tag is
not evaluated as a regular expression, I could find no way to get it
to skip occurences of \" and \'.
Does anyone know of a way to do this? Thank you.
Clive Pottinger
Feature Request to load/view the head/tail/other end of a file
Submitted by
paulflory on
Wednesday, 8 December, 2004 - 22:44
I wish I could use jEdit to view specific parts of a file (e.g., the "tail" or "head"), especially HUGE files, like the 100MB+ log files I typically need to comb through.
jEdit has trouble with large files, eats a good deal of memory, and becomes sluggish with such beasts.
Wouldn't it be cool if we could load the tail end of a file, like the Unix tail command does? Or the head of a file. Or, if possible, but not as important, be able to specify the line numbers (range) we want to open.
I tried using the Log Viewer plugin, but it also eats up memory and croaks with large files.
Thanks,
Paul
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
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
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
Macro to sort lines like in Ultraedit?
Submitted by
pdfneuro on
Wednesday, 15 December, 2004 - 13:57