jEdit in github
Hello,
I believe that switching the jEdit VCS to git/github would attract developers to the project. Several projects have reported great benefits contribution-wise when they moved to github (Erlang, jQuery, HelmaNG and Clojure being some of them). The reason is that the pull/push/branching system is amazingly convenient and lets everybody focus on real code and not maintenance. The interface is easy to use as well.
Is there any possibility that this would happen in the near future? I think it would be amazing for the project, really.
Cheers,
Sergi
Getting standalone textarea to work with syntax highlighting, code completion, etc.
Submitted by
mikeklein on
Sunday, 22 November, 2009 - 21:22
I have run build.xml to generate standalone-textarea and despite tweaks (BufferUndoListener?) needed in build got past this.
I can successfully show a textarea with my content inside however there is no java syntax highlighting, backspace/del/arrow keys don't work, etc. All text is black and white.
I am instantiating the textarea with supplied 'jedit.props' file and changed default mode from text to java in 'jedit.props'. I have confirmed that modes directory (with text.xml/java.xml) is a part of my textarea jar produced by build as is the modified jedit.props file.
Any ideas how I can actually use this standalone widget as intended? I need syntax highlighting and code completion. I was hoping to pass in classpath urls as needed for code completion part.
I am seeing nothing in APIs (at least from textarea) which would allow me to do any of the above.
Help w/be nice right about now...
thanks in advance,
mike
How with jEdit edit String in java program?
Submitted by
programania on
Wednesday, 11 November, 2009 - 17:22
How with jEdit edit String in java program?
Something of a type:
String s =jEdit.???????????? (" for (i=0; i < 10;) \n {\n i ++; \n} ");
Trouble building jEdit in Eclipse
Submitted by
kenmcfa on
Saturday, 10 October, 2009 - 23:32
Hi, I'm trying to built the latest trunk of jEdit in Eclipse. I checked it out from the sourceforge SVN, and then imported it as a new project from the ant buildfile. However doing so gives me loads of problems. A lot of them are complaining that various imports cannot be resolved. I *can* fix these by importing the appropriate .jar files on the build path. This fixes those errors, but I also get package related errors such as "The declared package "macosx" does not match the expected package "jars.MacOSX.macosx"" I could fix these by replacing the package declarations, but surely this isn't necessary? Is it possible that I've set something up wrong?
Any help would be much appreciated.
Documentation for syntax highlighting
Submitted by
robw on
Friday, 9 October, 2009 - 23:03
Newbie here!
I've looked in all the docs can find but can't find anything about how to create a syntaxt highlighting file. Anyone knkw where I can get instructions?
Thanks.
Rob Wheeler (UK)
Need Help
Submitted by
Nirvana_One on
Tuesday, 22 September, 2009 - 08:31
Hello,
I found it fast while jedit openning a txt file and displaying it even the file is large, why?
I use text to append the StringBuffer, also use MappedByteBuffer, but it's not as fast as jedit.
Would someone tell me some...?
Also My email: ts.nirvana@gmail.com
Thanks very much.
New Java profiler to improve jEdit
As a 'thank you' to the jEdit team, we're giving away free (full) licenses to our new CollectionSpy profiler to all serious jEdit contributors. CollectionSpy is the only Java profiler to focus exclusively on Collections Framework usage issues.
See http://www.collectionspy.com for tool features, contact details (please use the Support page), etc
jEdit Search history
Submitted by
joe131 on
Friday, 9 January, 2009 - 18:38
Hi All,
I've used jEdit for years and think it's excellent!
But one thing has bugged me since Day one.
Besides the
lol
If you add the Search Toolbar, and type in a word to
search for, it doesn't get added to "Previously entered strings".
The only way strings seem to get added is if you
use the Search->Find Dialog.
So I'm looking at the code now to try to find a way to
get it to save strings entered into the Search Bar.
I think this would be HUGE.
If there is already a way to "enable" this,
let me know, otherwise I'm hoping to track down
the code involved and modify it.
Keep up the good work!
Joe Siebenmann
Regex in SPAN_REGEXP/END
Submitted by
Blitzcoder on
Monday, 29 December, 2008 - 23:14
Hey guys,
I'm writing a small IDE (http://blitz-coder.de/data/find1.png) for a basic-like language (BlitzMax) using the latest jedit textarea (pre16 I think). Multiline-comments are set using "Rem" and "EndRem" (case-insensetive). Now the end of a multiline comment can be "EndRem" or "End Rem". I'm using a SPAN_REGEXP-Tag in the mode file, but since I can just use regex in and not in . So I don't know how to highlight these comments.
At the moment my definition looks like this:
^\W*Rem\W*$
EndRem
Perfect would be a definition like this:
^\W*Rem\W*$
^\W*End\s*Rem\W*$
Do you have any ideas how to highlight these comments? Do you have any reason for disallow regex in ? If not, I could write a patch to make this possible.
Thanks for your answers..
Johannes Wotzka
Pro*C syntax
Submitted by
gabebear on
Monday, 24 November, 2008 - 20:21
I'm trying to make a ruleset for Pro*C syntax. Pro*C is C run through Oracle's precompiler which allows you to embed SQL directly into C.
Here are the simple rules I have that come close to working.
EXEC SQL CREATE
END-EXEC;
EXEC SQL EXECUTE BEGIN
END-EXEC;
EXEC SQL EXECUTE DECLARE
END-EXEC;
EXEC SQL
;
The problem with these rules is that "EXEC", "SQL", "CREATE", "EXECUTE", "BEGIN", and "DECLARE" can all appear on separate lines.
I tried creating separate rule sets, but I don't see a way to include a default case that changes the ending delimiter for the block.
I also messed with regular-expressions via SPAN_REGEXP, but these only work on a single line at a time (which makes sense for speed) and can't just match the first character.
Any ideas?
Here's snippit that I've been using for testing.
EXEC
SQL CREATE
select * from should_be_highlighted;
END-EXEC;
select * from should_NOT_be_highlighted;
EXEC SQL
EXECUTE select * from should_be_highlighted;
select * from should_NOT_be_highlighted;
EXEC SQL EXECUTE select * from should_be_highlighted;
select * from should_NOT_be_highlighted;
EXEC SQL select * from should_be_highlighted;
select * from should_NOT_be_highlighted;
EXEC SQL BEGIN DECLARE SECTION;
select * from should_NOT_be_highlighted;
EXEC SQL END DECLARE SECTION;
select * from should_NOT_be_highlighted;
EXEC
SQL
EXECUTE
BEGIN
select * from should_be_highlighted;
select * from should_be_highlighted;
END-EXEC;
select * from should_NOT_be_highlighted;
EXEC
SQL
select * from should_be_highlighted
;
select * from should_NOT_be_highlighted;
EXEC SQL EXECUTE BEGIN select * from should_be_highlighted;select * from should_be_highlighted;select * from should_be_highlighted;END-EXEC;
select * from should_NOT_be_highlighted;
EXEC SQL EXECUTE
BEGIN select * from should_be_highlighted;select * from should_be_highlighted;select * from should_be_highlighted;END-EXEC;
select * from should_NOT_be_highlighted;
Accessibility & JEdit - A field of improvement!
Submitted by
FMarrenbach on
Tuesday, 4 November, 2008 - 09:41
Hello,
Screen Reader´s like VoiceOver on a Mac does not interact with JEdit! Users can not listen to their text while typing. (May be it is possible to bridge the gap with a macor or apple script?)
the toolbox icon will be found by VoiceOver (Screen Reaser of Mac OS X) There are tool tip tests too, but VoiceOver can not read it.
the web site of cmmunity has also problems with accessibility!
Yours
Frank Marrenbach
Run Jedit
Submitted by
LeGerfo on
Friday, 31 October, 2008 - 17:49
Hello,
I would like to launch JEDIT in a frame. Is it possible to use JEDIT Je = new JEDIT(); ???
or how can I do for this ? please help me ? Is there anybody ???
Greg
Create a new windows that receive external information
Submitted by
LeGerfo on
Thursday, 30 October, 2008 - 12:13
Hello,
I would like to join all JEDIT to my program.
I would like to add a special window which receive information from my class, in fact I need this:
1/ My Program lauch JEDIT
2/ I write in JEDIT in a normal text window (code)
3/ I read this code from JEDIT (even I don't save file)
4/ I send information in text to JEDIT in a special window
For each case (1,2,3,4) in which class I need to modify for realize that I want ?
Thanks
Greg
cannot start jEdit in Eclipse
Submitted by
jtestori on
Tuesday, 30 September, 2008 - 08:28
hi!
i'm trying to compile and run jEdit 4.3pre15 with Eclipse 3.3. i've tried with java 1.5 and 1.6. i always get the following exception:
10:26:41 [main] [warning] IOUtilities: Error moving file: java.io.FileNotFoundException: C:\Dokumente und Einstellungen\tej\.jedit\activity.log (Das System kann die angegebene Datei nicht finden) : C:\Dokumente und Einstellungen\tej\.jedit\activity.log (Das System kann die angegebene Datei nicht finden)
10:26:41 [main] [warning] jEdit: jedit.jar not in class path!
10:26:41 [main] [warning] jEdit: Assuming jEdit is installed in C:\ta33\Workspaces\VAEB\ZZZ_JEDIT.
10:26:41 [main] [warning] jEdit: Override with jedit.home system property.
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: java.lang.NoClassDefFoundError: A class required by class: org.gjt.sp.jedit.gui.statusbar could not be loaded:
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: java.lang.NoClassDefFoundError: org/gjt/sp/jedit/gui/statusbar (wrong name: org/gjt/sp/jedit/gui/StatusBar)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.bsh.BshClassManager.noClassDefFound(BshClassManager.java:567)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.bsh.BshClassManager.plainClassForName(BshClassManager.java:244)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.bsh.classpath.BshClassLoader.findClass(BshClassLoader.java:177)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.bsh.classpath.BshClassLoader.loadClass(BshClassLoader.java:110)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at java.lang.ClassLoader.loadClass(Unknown Source)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.bsh.classpath.ClassManagerImpl.classForName(ClassManagerImpl.java:195)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.bsh.NameSpace.classForName(NameSpace.java:1318)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.bsh.NameSpace.getClassImpl(NameSpace.java:1218)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.bsh.NameSpace.getClass(NameSpace.java:1159)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.bsh.Name.consumeNextObjectField(Name.java:298)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.bsh.Name.toObject(Name.java:199)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.bsh.BSHAmbiguousName.toObject(BSHAmbiguousName.java:60)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:86)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:62)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:644)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:738)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:727)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.BeanShellFacade._eval(BeanShellFacade.java:148)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.BeanShellFacade.eval(BeanShellFacade.java:113)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.BeanShell.eval(BeanShell.java:387)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.ServiceManager$Descriptor.getInstance(ServiceManager.java:297)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.ServiceManager.getService(ServiceManager.java:238)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.gui.StatusBar._getWidget(StatusBar.java:444)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.gui.StatusBar.(StatusBar.java:86)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.View.(View.java:1230)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2257)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2235)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.jEdit.newView(jEdit.java:2211)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at org.gjt.sp.jedit.jEdit$6.run(jEdit.java:3654)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at java.awt.event.InvocationEvent.dispatch(Unknown Source)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at java.awt.EventQueue.dispatchEvent(Unknown Source)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
10:26:41 [AWT-EventQueue-0] [error] BeanShellFacade: at java.awt.EventDispatchThread.run(Unknown Source)
regards, hannes
processKeyEvent method in KeyEventWorkaround class
Submitted by
funa_take on
Friday, 18 July, 2008 - 14:18
I have some questions for processKeyEvent method in KeyEventWorkaround class.
Q1
case KeyEvent.KEY_PRESSED:
....
default:
if (!evt.isMetaDown()) {
if (evt.isControlDown() && evt.isAltDown()) {
lastKeyTime = 0L;
}
.....
Why lastKeytime = 0 ,when Ctrl and Alt are downed.
Q2
case KeyEvent.KEY_TYPED:
....
if(((modifiers & InputEvent.CTRL_MASK) != 0
^ (modifiers & InputEvent.ALT_MASK) != 0)
|| (modifiers & InputEvent.META_MASK) != 0)
{
return null;
}
Why is it "xor" instead of "or"?
Whren I press Alt and Ctrl and "p key" on Keybord Tester, "CA+p p" is shown in TextField on Linux.
To solve this problem, the following code was compiled.
case KeyEvent.KEY_PRESSED:
....
default:
if (!evt.isMetaDown()) {
if (evt.isControlDown() && evt.isAltDown()) {
//lastKeyTime = 0L;
}
.....
case KeyEvent.KEY_TYPED:
....
if(((modifiers & InputEvent.CTRL_MASK) != 0
|| (modifiers & InputEvent.ALT_MASK) != 0)
|| (modifiers & InputEvent.META_MASK) != 0)
{
return null;
}
Does this code have the problem?
Component or piece of code for search and replace text multiline with java
Submitted by
andremonio on
Wednesday, 16 July, 2008 - 18:29
Hi everybody.
Do you have any component or piece of code for search and replace text multiline with java?
I have installed the jEdit and their sources, but it is huge and complex, and I only need this functionality to replace many of the type TXT files.
Thanks!
Best regards.
---- André Campanini - Brazil
jEdit Coding Standards
Hello,
I am a masters student at Penn State University and I am working on my masters thesis. My thesis discusses how complexity can proliferate through a software system as it evolves. Part of my thesis involves a case study of the jEdit program. I was wondering if any of the developers could let me know if jEdit complies to any particular style guidelines or coding standards and, if so, what those guidelines are. This would be extremely useful in my research. Any information you could give me would be very much appreciated. Thanks for this great product!!
Thanks!!
Understand Jedit coding
Submitted by
insp on
Monday, 24 March, 2008 - 05:49
Hi can any one help me to understand jedit coding. especially the view part of it.
I urgently need an editor in java with syntax highlighting.
can any one help me to separate the syntax highlighting feature of jedit and apply to a stand alone editor.
Its very urgent.. pls help
compile jEdit with JDK only?
Submitted by
khcon on
Thursday, 7 February, 2008 - 23:28
is there a way to compile jEdit using just the JDK 1.4.1 and no additional software like Ant? I can't install anything new onto that machine and the JDK is the only thing available. I also HAVE to compile it from source code ...
Thanks,
KH
display line numbers in gutter
Submitted by
xlinuks on
Saturday, 17 November, 2007 - 13:41
Hi!
I'm trying to set (programmatically) jEdit to display the line numbers at startup (These only appear if one presses Ctrl+E+T, jEdit doesn't seem to remember whether showing line numbers was turned on or off last time).
I think I have to tinker with the class Gutter.java from package org.gjt.sp.jedit.textarea
The method Gutter.setExpanded( true ); (I've put it in different locations) doesn't seem to work.
Does anybody have any idea what I'm doing wrong?