jEdit Community - Resources for users of the jEdit Text Editor
line numbers
Submitted by mich24 on Thursday, 14 December, 2006 - 09:26
Can somebody tell me in what class the line numbers of the program editor are displayed? I have to have a look on the code beacause I have to implement line numers in another editor...

thx a lot!
compilation errors
Submitted by mich24 on Thursday, 14 December, 2006 - 09:25
I have create a project with JBuilder with all the jEdit source files but I get many compilation errors... why?

Thx a lot for any ideas!
Trouble writing an edit mode with line continuation characters
Submitted by logris on Tuesday, 28 November, 2006 - 21:35

I am trying to write an edit mode for "JPL", the code behind a 4GL language called Panther and created by Prolifics. I have run into a problem that I cannot find a solution to and I would like to pose it to the JEdit community for any ideas.

Panther statements are newline terminated with a line continuation character. This seems to be the root of my problems. I would like to syntax highlight embedded SQL-like statements using keywords that only pertain to the embedded language. Here is an example of the embedded statement I would like to highlight:

// Call some function
call some_func()

// Begin the embedded SQL to highlight
DBMS SQL SELECT column \
FROM table \
WHERE column = 'Value'

// Do something else
for i= ...

The statement I want to highlight always begins with 'DBMS' and ends at the end of line, unless there is a line continuation character. There can be any number of continued lines. The statement ends at the end of the first line without a continuation character. For now, I will assume nothing can go after the continuation character (no comments).

Any ideas on how to match and delegate this statement to a seperate set of <RULES>? The best I have found so far is use <SEQ> to match the beginning DBMS statement and use <SEQ_REGEXP> to match on " [^\s\\]*$" with a hash character of " " for the end, but that tends to mess up my last token's highlighting.

Maybe there is a way to match on newline or detect the end of line? Or delegate when no more tokens are left on a line? Or match across a line?

Any help would be appreciated. Thanks. =)

Including plug-ins in install
Submitted by adxp on Monday, 28 August, 2006 - 03:29
Hey,

I've customised a few pre-existing jEdit plug-ins, and I'd like to distribute them within my organisation by having the installer copy them to the plug-in directory automatically. Is there any easy way of accomplishing this? Also, in a similar vein, is there any good way of defining default perspective.xml settings?

Cheers, -adxp
Excluding directories from search
Submitted by Mischan on Thursday, 3 August, 2006 - 23:25
I often use jedits hypersearch through big directory structures (eg. to find references to old datastructures or import-like language constructs, after fundamental rewrites, etc.). While I'm very fond of hypersearchs speed, there are directories i want to exclude from search, because they contain lots of irrelevant data (eg. caching directories) and therefore delay the search to no avail.

Now my favourite solution to the problem would be, to write a simple config file (like every newline a separate dir) "ExcludeDirs.cfg" or something, where search could look up directories that must not be visited recursively. After some browsing through the jEdits code I found the class VFS. There I would, for a quick personal hack, introduce an ArrayList that loads the "ExcludeDirs.cfg" and a boolean member that tells the class if the exclusion mechanism is necessary for its current use (because, VFS isn't used by search only). Inside the function listFiles I could add something like

if(!ExcludeDirs.contains(canonPath))
// recursive call to subdir

and hope that it works.

Now, before i start, i would like to hear some comments. I'm a complete jEdit starter so I don't know what the idiomatic way to solve this within jedits framework would be or if it could be solved with a simple extension mechnasim like a macro or plugin (or it is already there and i couldn't locate it). From my personal feeling VFS seems a bit too low-level for the task, on the other hand it's the only approach i can think of, that manipulates jEdits code directly without changing one interface. Furthermore i could think of other tasks where configurated exclusion of directories at this abstraction level could be relevant.

Thanks in advance
Mischan Gholizadeh Toosarani
MAC REQUEST: apple.laf.useScreenMenuBar
Submitted by stovak on Saturday, 1 July, 2006 - 18:22
in the "java" section of the info.plist in the mac download, I'd like to request one small change: Using the mac's top white menu as the default menu bar... you do this by added the following entry to the key entry in the info.plist: [code] Java Properties ....... apple.laf.useScreenMenuBar true [/code] This will put jEdit's menu bar at the top of the screen in the white menubar.
Large files
Submitted by maciejr on Tuesday, 27 June, 2006 - 12:20
Hi,

I sometimes need to work with large data files: containing numeric and other data. By "large" I mean larger than the available memory, say a few GB. Note that there are many editors around that compete in solving the problem of editing files in memory. Surprisingly, I could not find even a simple tool that solves a different problem: does what can be done in reasonable time with a large text file on disk.

I would like to find or make a tool to edit a file with no limit on file size, like a disk-based editor. Specifically such a tool could:

(1) quickly view parts of a file
(2) edit a small part of the file in memory (taking appropriately long to commit changes)
(3) search and replace some text through the file (making one full pass through the file)

I've searched these fora and, judging from a discussion in 2004, jEdit does not seem to support editing large files.
Are there any plans for a "large files" editing mode with limited functionality?
Could anyone point me to a (free or low cost) tool that already does that?
I am totally new to jEdit, but have some programming background. Do you think it is doable to adapt jEdit to perform such a task?

Thanks in advance for help,

Maciej.
solution for proper highlighting of script/style tags
Submitted by silverquick on Wednesday, 17 May, 2006 - 01:37
Hey all, I was always bothered by how SCRIPT and STYLE tags in HTML or PHP mode look kind of ugly because of how those modes have to delegate their contents to the right ruleset. This may have been discovered already but I've found a pretty simple solution. I'm not sure if I should release it to the files section though, as my mode files are pretty customized in other ways too (customized OCD style Smiling).

Basically, my new rules highlight any occurences of '<script' or '<style' as 'MARKUP', along with their matching closing tags, and delegate everything between them to a 'mediating' ruleset, which imports the rules from the TAGS ruleset (so any attributes of the style or script tag are highlighted properly), but adds a rule to delegate anything after '>' to either CSS mode or Javascript mode. Doesn't sound as simple as I thought. Smiling

Anyway, I can't get HTML to show up on this forum, so if you want to see what the rules look like in html.xml, look at this file:
http://www.flowingcreativity.net/jedit-better-rules.txt
Manipulating jEdit from external process.
Submitted by PaulCollingwood on Wednesday, 22 February, 2006 - 10:24
I was wondering if anyone knows if it's possible to access a running version of jEdit (and it's plugins) from an external application?

I have very,very little understanding of Java, but instincts tell me that maybe this could be achieved via a JVM instance in control of an application.
Could someone confirm whether this is possible?

The reason I would like to perform such a task is to invoke calls to the ErrorList pligin, via it's addError() call, as is outline here....

http://community.jedit.org/cgi-bin/TWiki/view/Plugins/PluginDebuggingTechniques

I would like to write a WIN32 application that performs such a tesk, and this would ideally be written in either VB or C.

Has anyone got any ideas how I would get started on this?

Many Thanks Smiling
Problem with a new mode
Submitted by witchi on Monday, 23 January, 2006 - 16:39
Hi, I try to create a new mode and I have problems with to lines, which I have to distinguish. Maybe someone here has an idea...

FETCH :$$.$$.DEATH.DEATH(autopsy)
and
(test.tmpItem(::$$.$$.DEATH.DEATH.$$.AUTOPSY))

In the first line, DEATH(autopsy) is not a function, but test.tmpItem( in the second line. With the line
<MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="TRUE">(</MARK_PREVIOUS>
I get the type FUNCTION for both strings. How can I avoid that?

Thank you
Andre
Any kind of diagrams?
Submitted by clievers on Thursday, 19 January, 2006 - 20:20
Does anyone know if there are any kind of diagrams that will allow you to see class relationships, etc without having to look at all of the code?

Thanks.
any future releases of jEdit planned or in progress?
Submitted by paulflory on Tuesday, 27 December, 2005 - 03:49
Hi all,

I've been an avid jEdit user for a number of years now and always look forward to new versions and plugins. However, I haven't seen any new jEdit versions for some time now, and wondering if development is still ongoing?

Thanks,
Paul
Is jEdit development still active?
Submitted by sefer on Wednesday, 26 October, 2005 - 07:50
Hi,

I've been using jEdit for a very long time now, and it's a great editor, much better than the lot of them out there.
However, in the past recent months I have somewhat missed the regular releases and updates that once appeared on a monthly basis. It appears that jEdit 4.3pre2 has been there for too long and I'm beginning to worry that development and updates for this excellent editor have ceased.

Please calm my worries and update the site with new releases Smiling

Thanks,
Sefer.
jEdit developement future
Submitted by bwalle on Saturday, 22 October, 2005 - 11:33
Hello,

the last beta release is from March 2005, so I just want to ask if there are plans to create new beta releases of jEdit or what's the future of this great tool. Thanks.


Regards,
Bernhard
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
Terminating a rule set at a newline
Submitted by silverquick on Monday, 5 September, 2005 - 05:59

After using (and loving) jEdit for a little while, I realised that, in PHP mode, code like the following is highlighted incorrectly:

...
// this is a comment ?>

The problem is that PHP always ends parsing at the closing tag ('?>'), even if the line it's on is commented with // or #. However jEdit's highlighting does not reflect this. This issue is covered in a bug report at:

http://sourceforge.net/tracker/?group_id=588&atid=100588&func=detail&aid=958013

However, I thought I'd bring the discussion here, too. I tried putting the following in the php.xml file:

<SEQ DELEGATE="PHP_LINECOMMENT">//</SEQ>
<SEQ DELEGATE="PHP_LINECOMMENT">#</SEQ>

<RULES SET="PHP_LINECOMMENT" DEFAULT="COMMENT1">
	<SEQ TYPE="NULL" DELEGATE="MAIN">?></SEQ>
	<SEQ TYPE="NULL" DELEGATE="PHP">&#xA;</SEQ>
</RULES>

What this does is delegate any code following // or # to my special PHP_LINECOMMENT rule set. This rule set should then end at either a PHP closing tag, going back to HTML mode; or at an end-of-line, going back to normal PHP mode. The former works and the latter doesn't.

This is the main point I wanted to raise for discussion. Why doesn't the newline character (&#xA or &#10) work, and is there a possible workaround? Using the newline character is also applicable to other highlighting issues, including (X/HT)ML attributes, because they can be spread over multiple lines.

Embedding jEdit in my Swing app
Submitted by Anonymous on Tuesday, 19 July, 2005 - 02:41
Is there documented method using jEdit as the text editing component within another Swing application? As a replacement for the JTextPane object, for example?
Extending jedit with lisp
Submitted by Anonymous on Sunday, 17 July, 2005 - 14:22
Have anybody information or experience in extending jedit with lisp or some other functional languages?
May be it's possible to write scheme code and then compile it with Kawa http://www.gnu.org/software/kawa/ into java byte-code and integrade with jedit?


Andrey
Building jEdit from source
Submitted by clim1219 on Saturday, 26 February, 2005 - 08:58
I checked out jEdit from CVS and try to build it but it complains of a missing ant target "dist-13".

I guess I miss something here. Could someone kindly point me to the right direction.

Here is the console log:

D:\projects\opensource\jedit>ant -Dant.full.path=C:/Java/apache-ant-1.6.2/bin/ant build
Buildfile: build.xml

prepare:

jEdit:

BUILD FAILED
D:\projects\opensource\jedit\build.xml:31: The following error occurred while executing this line:
Target `dist-13' does not exist in this project.

Total time: 1 second


Thanks,
Chris
Adding JEdit style syntax highlighting to standalone
Submitted by Anonymous on Wednesday, 23 February, 2005 - 21:31
I was trying add syntax highlighting to an existing standalone application. I think that JEdit has the best way of doing this. I don't mind including all the Jedit resources
including, startup scripts, etc, but I would like to just add the highlighting.

Is this in the wiki somewhere.

Here is my email(I may not monitor the forum)
berlin.brown { at } gmail.com
User login
Browse archives
« May 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
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   83281
Context Free Art (*.cfdg)   0.31   46055
BBEdit scheme   1.0   18595
JBuilder scheme   .001   18495
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293