How to delete a marker from a buffer in a macro?
Submitted by
mabra on
Wednesday, 5 July, 2006 - 13:32
Hi All,
I insert a marker into a buffer, before I make some modifications to it;Just to remember my starting position. After I finish my task, I will remove the marker, but this fails.
My code[snippet] is as follows:
char mc = 'X';
buffer.addMarker(mc, 6);
... my buffer-modies here ...
Marker m = buffer.getMarker(mc);
buffer.removeMarker(m.getPosition());
The marker is stil there [and "m" is NOT null!]
Any help would be really very welcome.
Thanks,
Manfred
XInsert:Respecting CDATA in CDATA and more global references
Submitted by
mabra on
Wednesday, 5 July, 2006 - 14:35
Hi All,
I am new to JEdit and after discovering XInsert, it becomes my most importent module!!!
With other libraries, I was not that successful [like "Clipper" and "Templates"]. Although, IMO, some enhancements would be very welcome.
First, I try to manage my VBScript library with it, but my most scripts are based on the xml-format [usual extension is ".wsf"]. Inside this scripts/snippets, I have always to include CDATA sections to surround the code-blocks, but this is not possible in XInsert using "xinsert_script" item-types:
-
-- end "inner" CDATA
]]> !!!!!!!!!!!!!!!!!!!!!!
The whole library is no longer usable after this, not only the current file! All libraries below the current module are no longer displayed. I am not sure, if this is a bug, I'll just request for respecting CDATA in CDATA sections, which works well in my other xml's.
My workaround was to use "CDATA.BEGIN" and "CDATA.END" inside my snippets and replace them by macros. Even this is not easy:
String search = "CDATA.BEGIN";
String repl = "
The last line is not possible at all and I have to recode it like:
cdataBeginReplace.append((char) 0x3C).append("!").append("[").append("CDATA").append("]");
..... 
It might be, this is simply JEdit's xml interpretion itself?
Additionally, a "global reference" to the current XInsert file would be very useful;All my modules contain currently a "Edit this lib" entry-macro, which has to be hardcoded.
Further, another tag like "macro" would be a good idea, just to put library common code into the module. Currently, I put all this things in my startup as global code.
This should not be considered as a complaint
,
just a wish for some useful enhancements!
Thanks a lot!
Manfred
Note:This was not easy to write!!! Luckily, I discovered, that one may use the "xmp" tag inside the post [just to help others with this note]
Mouse right-click behavior
Submitted by
mabra on
Wednesday, 5 July, 2006 - 22:22
Hi All !
Right-clicking with the mouse into the buffer unexpectedly - so far for me - also moves the caret/the current line to this position. I personally think, right-clicking the mouse should only open the context menu, nothing else.
For example, if your caret is at the end of the buffer and you scoll up to see some text to decide what do next and then open the context menu [that mentioned right click!] to insert some text etc., this would unexpectedly happen at that clicked textline, not - as I was expecting - at the end of the buffer.
What are the usual expectations here and by other users? My macros do not work very well in this scenario. It looks more as unripe behavior than planned, or I am wrong here?
Note:If there is text selected, it works well and the cursor/caret/current line stays exactly were the selection is.
Thanks a lot,
Manfred
put "Search And Replace" window in HyperSearch panel
Submitted by
dfabrizio11 on
Thursday, 6 July, 2006 - 12:27
Hi All,
It would be nice if the "Search And Replace" window was part of the HyperSeach Results panel. I currently dock the HyperSearch Window on the bottom and then move the "Search And Replace" window so it doesn't obstruct the text view.
I have often thought it would be nice if the "Search And Replace" window was on the left
side of the "HyperSearch" window.
I know about the XSearch plugin and have read it can be docked but I would really like the standard "Search And Replace" window to share the bottom window space with the "HyperSearch" window.
Can this be added as a new feature?
Thanks,
Dan Fabrizio
jEdit 4.3pre5 FTP not working
I just installed 4.3pre5 and then installed FTP plugin from the plugin manager (which required a couple other plugins which i installed as well). I did nothing else before trying to FTP: it didn't work right. Instead of trying to FTP, it would be stuck saying "Loading..." and the progress bar at the bottom of the screen just said "Input/Output Complete". It didn't appear to even attempt anything else. I checked with another coder friend of mine and he had the same problem.
NOTE: SFTP appears to work perfectly.
Please help!
Thanks!
Jeremy
Default settings on a clean install
Submitted by
brackeen on
Thursday, 6 July, 2006 - 23:33
I've been trying out jEdit 4.3pre5, and I'm really glad to see it progressing. Everyone is doing a great job.
I think there are a couple things that could make it easier for new jEdit users. Here are some ideas for jEdit default settings on a clean install.
1) Before downloading plugins, allow the user to choose a download mirror. "Plugin central defualt" gives error messages.
2) Use the system defaults whenever possible (Use the System L&F instead of the Cross Platform L&F, and on Java 6, use the platform's setting for font anti-aliasing.)
3) Show plugin dockables after installing a new plugin. (Only one dockable each - i.e., don't show two Structure Browsers for both xml and html.) This gives the user feedback as to what they just installed, and it is easier to hide a visible plugin rather than show a hidden one.
Autocomplete Plugins
Submitted by
jotamachuca on
Friday, 7 July, 2006 - 01:23
Hi
I have a problem. ..
I don't find the plugins for autocomplete ... i search into plugins available, but i don't find....
What plugins to use????
Thanks
PD: I don't speak english, sorry :$
CSS 2.2 By John Paul Taylor [Updated] (css.xml v2.2 Update by Venimus)
Submitted by
venimus on
Friday, 7 July, 2006 - 02:03
"Search" help
Submitted by
ELockhart on
Friday, 7 July, 2006 - 12:42
I am relatively new to jEdit and using the "Search" feature. I have reviewed the jEdit Help under Regular Expressions but I am having trouble trying to construct a search that would find the word or string 'Folder' at the beginning of a line and also contain the string 'UT120AP' within the line, disregarding all other text contained within the line.
Can some please help? Also, is there documentation of sample regular expressions I might learn from?
Thanks in advanced,
Eric
What's gone wrong with jEdit?
Submitted by
tremolo on
Friday, 7 July, 2006 - 14:52
I'm stuck. I don't know what to do. After years of being very satisfied with jEdit 4.1 (I once upgraded to 4.2 but went back to 4.1 because it had had various features that I liked removed), my need for support for PHP5 syntax finally prompted me to try upgrading to jEdit 4.3. I'm baffled - it seems to be several steps down from 4.1. 4.1 was great: I'd select a plug-in, download it, and it would just work straight away. However, this time:
- the XML plugin is behaving extremely erratically. It won't autoclose tags for me, doesn't pop up the autocomplete menu, and it only says anything is allowed at the caret position after I've already placed the opening '<'.
- the CodeBrowser plugin identifies classes, functions, etc, but doesn't allow me to jump to them - making it essentially useless.
- jEdit doesn't seem to remember all my settings any more: I like to have a search bar at the top of the screen, but I have to open it from the menu every time with 4.3. Likewise, BufferTabs is erratic - sometimes it remembers to open, sometimes it doesn't and I have to open it.
- the jEdit Launcher thing is gone. Why? What possible reason could there be for reducing jEdit's functionality like that? I know this went in 4.2 - it was one of the reasons I went back to 4.1 - but I'd hoped that, like the soft-wrap thing, someone would put it back in 4.3. What logic is there to removing features as you go along?
...So now I'm stuck. I don't know what to do. I'm so used to and comfortable with jEdit that the idea of trying to find (and start from scratch with) an alternative is boring beyond belief, but as it stands, no version of jEdit (4.1, 4.2, or 4.3) seems to meet my (surely not particularly avant-garde) needs - ie. editing PHP5 code and HTML. Can anyone help me fix the problems above? Or, better still, does anyone have a PHP5 edit mode for jEdit 4.1?
Check for Plugin Updates
Submitted by
icon on
Friday, 7 July, 2006 - 16:15
A feature that I would find useful, is a global option that will launch a search for plugin updates at startup and displays the plugin manager or a dialog box if any exist. The same functionality could be used for jEdit program versions as well. The key would be that it is a user set option, so it can be enable/disabled at will.
Adding this option would prevent spending time checking for updates periodically or having to set up an rss feed.
//i\\
CodeBrowser not working properly with jEdit 4.3Pre5
Submitted by
Manil on
Friday, 7 July, 2006 - 19:44
Hi,
I have a probleme working with CodeBrowser in jEdit 4.3Pre5, everything was working perfectly before, but now when i click on a function the cursor doesn't go there, it seems that the find function is not working properly, with 4.3Pre4 every thing was fine, is there a major changing.
I removed Pre4 and installed Pre5 without removing the plugins that are in Document And Setting.....etc, juste the folder Program Files/jEdit.
Can Some one help me on that please.....
Thx a lot
Bracket balancing -- help needed
Submitted by
clif2 on
Sunday, 9 July, 2006 - 11:14
Hi,
I've an error in one of my source files, which I suspect is a missing }. How can find all the unclosed braces (etc.) in a file?
JEdit - Germany
Submitted by
Weber on
Monday, 10 July, 2006 - 12:21
I found this mad program. There is this also on German
Memory consumption growing even when idle?
Hi all,
I've been using jEdit as my primary editor for several months now, and generally am very happy with it. One thing I've noticed is that jEdit seems to consume more and more memory over time, even when the app sits idle for extended periods. I know you can quickly release memory by double-clicking the usage report in the status bar, but is there something I can do to avoid some of that? Or are there debugging techniques that I could use to determine if it is from certain plugins, for instance?
Thanks for any advice!
Can not uninstall jedit
Submitted by
frisky on
Monday, 10 July, 2006 - 14:47
There seems no way to "properly" uninstall.
Win2k
jEdit 4.3pre5
Java Version 1.5.0 (build 1.5.0_07-b03)
Nothing in add/remove
no uninstall files i can find
nothing in start programs
Do I just delete the entire folder?
Thanks for the help.
Couple newbie setup questions
Submitted by
frisky on
Monday, 10 July, 2006 - 15:18
1. What plugin should I install for HTML tag paring - I heard it's possible in Jedit. eg, finding open and closing html tags in a 1000's of lines of spaghetti code.
2. Looking a way to toogle line wrapping on/off? Most editors have something in the toolbar that will do this.
3. Is there a way to make .php use arial font and .html files to use new courier font? ie. Customize via file extension?
4. Sorry, I don't see a spell checker. Is there one for english?
5. I don't see old fashion fonts like courier - is this available?
Thank you!
plugin does not seem to work & other questions
Submitted by
frisky on
Monday, 10 July, 2006 - 15:49
jEdit 4.3pre5
win2k
java 1.5
I'm looking for a way to see spaces, tabs, end of lines.
Most editors have a toggle toolbar button or key sequence that will show spaces as dots for example. Very handy to format and line things up on a page.
I don't see the command for this in Jedit.
Note I tried the plugin "Whitespace" but it must be broken - cause it seems to do nothing(?) Show spaces has no effect.
Also I set the the faint blue wrap guide line to not show in the global options - but when I restart jedit the change is not saved and it shows up again. Also is there a way to toogle this line on/off from the toolbar?
Thanks
XInsert: -xinsert_script- macro parsing fails:workaround
Submitted by
mabra on
Monday, 10 July, 2006 - 20:16
Hi All !
I am new to jEdit and try to organize my work around it now.
While writing a library for the XInsert plugin - to be used with VBScript - I got a strange problem.
The statement:
if( (filename.lastIndexOf(".") != 0) && (filename.lastIndexOf(".") > firstPos) )
{
....
}
could not be parsed and the library was out of order and unusable.
This seems to be the fact, because XInsert expects xml !!!
-
{@
... XInsert expects xml here!!!
}
The workaround I used, was to include the script/macro part into another CDATA section:
-
This prevents the xml-parser to interpret the macro code and everything is ok.
I found no better docs and discovered it this way. May be, this helps others too. Any other solution is very welcome.
Best regards,
Manfred
sftp plugin : The key format is not a supported format
Submitted by
matevad on
Wednesday, 12 July, 2006 - 14:07
Hello,
Anyone gets the same message as I do?
I have been using the keys with putty for years without any problem. I dont understand why the key is not supported.
The key is generated using PUTTY parameters : SSH-2 RSA 1024 bits
Otherwise the sftp plugin works fine if I use password authentication