XML plugin - what's wrong
Submitted by Anonymous on Saturday, 16 October, 2004 - 17:54
I'm new to jEdit and I wonder what am I doing wrong when I write
File-saving permissions under Windows XP
Submitted by
Afishionado on
Friday, 15 October, 2004 - 21:27
For whatever reason, whenever I try to save a new file with jEdit under Windows XP, I get the error "Insufficient permissions to save file." If I create the file with Notepad, I can overwrite it to my heart's content with jEdit.
Oh, yeah, I'm using jEdit 4.1. I have no problems using it under Linux.
Is this a bug, or is there just something weird about my configuration?
A'fish'ionado
JPyDebug Problems
Submitted by Anonymous on Thursday, 14 October, 2004 - 03:55
I've installed the JPyDebug plugin, but can not get it to work. I have set the Python interreter to be my version of Python that's installed (2.3), and the jpy daemon script that is in my home directory. I get the fallowing error when I start the debugger.
C:\Python23\python.exe: can't open file 'C:\Documents'
Debug session Abort =2
Also sometime it says localhost instead of 'C:\Documents', and down at the very bottom of the debugger window I get this message.
ERROR :: python jpydebugger launcher ABORTED
Anyone have any ideas why this is not working? I even tried installing the jython plugin, but that did not seem to help either. Do I need jython installed to get the python debugger to work? Also below is some output from the Jedit acitvity log. Any suggestions would be much appreciated.
[notice] jEdit: Loading edit mode C:\Program Files\jEdit\modes\text.xml
[debug] EditBus: BufferUpdate[what=PROPERTIES_CHANGED,view=null,source=Untitled-1 (C:\Program Files\jEdit\)]
[debug] PythonJeditPanel: JpyDbg Message Handler entered:BufferUpdate[what=PROPERTIES_CHANGED,view=null,source=Untitled-1 (C:\Program Files\jEdit\)]
[debug] PythonJeditPanel: Entering bufferUpdate
[debug] PythonJeditPanel: JpyDbg Message Handler exited
[debug] EditBus: BufferUpdate[what=LOADED,view=null,source=Untitled-1 (C:\Program Files\jEdit\)]
[debug] PythonJeditPanel: JpyDbg Message Handler entered:BufferUpdate[what=LOADED,view=null,source=Untitled-1 (C:\Program Files\jEdit\)]
[debug] PythonJeditPanel: Entering bufferUpdate
[debug] PythonJeditPanel: buffer loaded :Untitled-1 mode = text
[debug] PythonJeditPanel: JpyDbg Message Handler exited
[notice] jEdit: Loading edit mode C:\Program Files\jEdit\modes\python.xml
[debug] EditBus: BufferUpdate[what=PROPERTIES_CHANGED,view=null,source=excel2html.py (Z:\dev\python\)]
[debug] PythonJeditPanel: JpyDbg Message Handler entered:BufferUpdate[what=PROPERTIES_CHANGED,view=null,source=excel2html.py (Z:\dev\python\)]
[debug] PythonJeditPanel: Entering bufferUpdate
[debug] PythonJeditPanel: JpyDbg Message Handler exited
[debug] jEdit: Loading services from jeditresource:/JPyDebug.jar!/services.xml
[debug] EditPlugin$JAR: Opening C:\Documents and Settings\jason\.jedit\jars\xmlParserAPIs.jar
[debug] EditPlugin$JAR: Opening C:\Documents and Settings\jason\.jedit\jars\xercesImpl.jar
[debug] JPYPythonParser: python: activated for excel2html.py (Z:\dev\python\)
[debug] EditBus: BufferUpdate[what=LOADED,view=null,source=excel2html.py (Z:\dev\python\)]
[debug] PythonJeditPanel: JpyDbg Message Handler entered:BufferUpdate[what=LOADED,view=null,source=excel2html.py (Z:\dev\python\)]
[debug] PythonJeditPanel: Entering bufferUpdate
[debug] PythonJeditPanel: buffer loaded :excel2html.py mode = python
[debug] PythonJeditPanel: JpyDbg Message Handler exited
[debug] EditBus: SideKickUpdate[source=null]
[debug] PythonJeditPanel: JpyDbg Message Handler entered:SideKickUpdate[source=null]
[debug] PythonJeditPanel: JpyDbg Message Handler exited
[debug] WorkThread: Work request thread starting [SideKick #1]
[debug] WorkThread: Running in work thread: [id=6,run=sidekick.SideKick$ParseRequest@1a4181c]
[debug] JPYPythonParser: entering parser
[notice] Thread-4: C:\Python23\python.exe: can't open file 'C:\Documents'
[debug] EditBus: ErrorSourceUpdate[source=null,what=ERROR_SOURCE_ADDED,errorSource=errorlist.DefaultErrorSource[SideKick],error=null]
[debug] DockableWindowManager: Loading dockables from jeditresource:/ErrorList.jar!/dockables.xml
[debug] PythonJeditPanel: JpyDbg Message Handler entered:ErrorSourceUpdate[source=null,what=ERROR_SOURCE_ADDED,errorSource=errorlist.DefaultErrorSource[SideKick],error=null]
[debug] PythonJeditPanel: JpyDbg Message Handler exited
[debug] EditBus: SideKickUpdate[source=null]
[debug] PythonJeditPanel: JpyDbg Message Handler entered:SideKickUpdate[source=null]
[debug] PythonJeditPanel: JpyDbg Message Handler exited
[debug] ActionSet: Loading actions from jeditresource:/Background.jar!/actions.xml
How to set Commando to use jdk 1.5?
Submitted by
shingler on
Wednesday, 13 October, 2004 - 21:40
Hi all
How can i set the Console/Commando to use jdk 1.5?
For instance to compile a java file with the javac routine?
Many thanks
S
Customizing HyperSearch window behaviour
Submitted by
seani on
Monday, 11 October, 2004 - 22:21
I use a simple macro (bound to ALT-F) that calls up the HyperSearch window with a regex of ^function, the idea being to get a list of functions in a JavaScript file and skip to the required one.
This works fine, except I'd like the window to close as soon as I select the appropriate entry with ENTER.
Is there a way to achieve this?
Help With Configuring Editing Interface
Submitted by
berzerk on
Saturday, 9 October, 2004 - 00:51
I have looked all over for this and cannot find what I'm looking for or really what to ask for. In the screenshots section, Robert Fletcher's image, the editor does not have the "." at the end of every line and appears to have the ">>" at each tab indent. I would like to know how to configure these changes. Thanks.
Executing java programs from jedit?
Submitted by Anonymous on Thursday, 7 October, 2004 - 21:29
hi. Just started Jedit. I have used textpad earlier and in it i could launch my program directly from textpad. When i used the "run program" button in textpad a command prompt opened with the output of the program. How can i do that in textpad? Is it possible? I have seen the run button in the console but nothing happens.
Hope someone can answer me
PHP getter/setter macro
Submitted by
stavros on
Thursday, 7 October, 2004 - 16:53
Hey Folks.
Over the weekend I started working on a new project and was laying the infrastructure/groundwork out for everything .. doing up the class libs and what not .. I used DB_DataObject a lot in the past to generate my db class object code, but I decided to use my own rolled DbObject class and found myself writting millions of getters/setters for my class files.
Anyway, I got bored of that and found a macro someone wrote (and is posted somewhere on the site) which generates getters/setters for a c or java file and figured, what the heck, let's tweak that for php.
So I did ... and have it working for me somehow ok .. you just highlite the vars, run the macro and it whips them out, you can even select to use javadoc style comments or not.
The original author did a great job, kudos to him/her, wherever they are ... if anyone is interested in using this hacked-for-php version, I can post it somewhere here .. there are a few idiosincrosies I guess that make it work the way I work, but it's a start at least. For instance, for some reason I my db variables/columns use_this_approach to var naming ... when I code, I use studlyCaps, so my class files look like this.
class Something {
protected $first_var; // <-- this is how it's named in the db
// and the getter/setter for that looks like
// {{{ Getters
/**
* javadoc
*/
public function getFirstVar($first_var) {
$this->first_var = $first_var;
}
// }}} End Getters
// {{{ Setters
/**
* javadoc
*/
public function getFirstVar() {
return $this->first_var;
}
// }}} End setters
} // class
hah ... interesting, eh? Don't know why I do that, but anyway ... that's how "my" .bsh macro does the getters/setters, but you can hack it pretty easily to work like you do (in a php4 style too, if necessary)... there's more work to be done to make the macro more helpful/slick but if anyone might find it helpful for now, I'll throw her up somewhere ...
-steve
Is there any way to count the number of times a character occurs in a selection?
Submitted by Anonymous on Thursday, 7 October, 2004 - 15:05
Title sums up my quesiton. I try Search and Replace and when I enter the character in the Search field and click find it ALWAYS says there is only one occurrence when I can plainly see several.
I also do not see anything in the text tools plugin or other standard JEdit functionality.
Seems like a pretty simple task. Am I missing something here?
Proper Case
Submitted by
jpbroome on
Tuesday, 5 October, 2004 - 20:41
Anyone have a macro or know of a plugin that handles more Text Case options than just UPPERCASE or lowercase? Specifically, I'm looking for "Proper Case" or "Capitalized", where every first letter in a selection is capitalized.
Here's a spiffy javascript function that does it. Anyone have a jEdit equivalent?
function toTitleJscript(str) {
return str.replace(/(s[a-z])/g,function (match) { return
match.toUpperCase() });
Thanks in advance
Odd coding style support?
Submitted by
Langman on
Monday, 4 October, 2004 - 18:08
Hi,
I just started working on a new project that is using a very unique (read: I hate it) codeing style..
Any idea how I can modify the cplusplus.xlm so that it is more friendly to this style???
int x(int i)
...{
...switch(i)
......{
......case 1:
.........return 10;
......}
...return i;
...}
(ignore the dots. They were needed to maintain the structure)
Note that the body code and the {} line up, which is different from the so called "GNU coding style". I got it working so that the '{' is indented correctly but I can't seem to prevent jEdit from indenting again for the line following the '{'. Also, I can't see how I can tell jEdit to reduce the indent level for lines following a '}'..
Any help would be much appreciated.
antialiasing GUI
Submitted by Anonymous on Sunday, 3 October, 2004 - 03:52
I just learned that Java v1.5 has a command line switch to force font antialiasing :
-Dswing.aatext=true
I tried it with jEdit 4.2 final on Win2K and it works!
OpenGL Accelerated Java2d with jedit
Submitted by Anonymous on Thursday, 30 September, 2004 - 11:33
Hi,
Has anyone managed to get an improvement with the jdk1.5 with opengl acceleration on linux or windows ?
I don't see any speed increase when I run jedit with "java -Dsun.java2d.opengl=true" on my linux box.
PS. Is there a known way to understand if opengl acceleration is being used or not ?
Thanks.
Plugin Bundle (Nightly?/Other?)
Submitted by
dogleg on
Wednesday, 29 September, 2004 - 14:46
Is there an aggregate file containing the Plugin Central plugins as a single file download?
Could really use a plugin aggregate file with all the prerequisites.
Any periodic (nightly) frequency for creating the bundle would do.
I'm working offline/wireless on a machine and do not have high speed lazy load capability per plugin.
AutoFormat ?
Submitted by
theWax on
Wednesday, 29 September, 2004 - 08:56
i have a very messy .js file.
How can I autoformat it now within jEdit?
Cheers.
jan
Working directory
Submitted by Anonymous on Monday, 27 September, 2004 - 22:09
Is there a way to get the working directory to follow the current directory in the File System Browser? I looked all through the Options, the Help and this forum for any information but could not find any. Am I blind or isn't this an option?