All,
The attached patch stops geany from autocompleting XML in regular source files (Which I find annoying.....)
No ChangeLog this time
Cheers,
- Bob
On Thu, 30 Nov 2006 13:25:07 -0500, Bob Doan bdoan@sicom.com wrote:
All,
The attached patch stops geany from autocompleting XML in regular source files (Which I find annoying.....)
Thanks. Before applying, one question: What do you mean with regular source files? It shouldn't do anything if the current file is not handled by the XML or HTML lexer. So, the XML auto completion works or should work only for XML(including docbook), HTML and PHP (where mostly HTML code is embedded) files.
No ChangeLog this time
We'll do this for you, no need to touch the ChangeLog ;-).
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key
Hym,
Maybe the problem is a a deeper problem. I did the patch to make it stop completing things in PHP code, as it was driving me a little crazy..
If I have PHP code like:
xml .= "<Part fontSize="9" orientation="landscape" ...
And I attempt to do any object references, as soon as I type '>' in the '$object->' It would give me '</Part>'.
On Fri, 2006-12-01 at 19:15 +0100, Enrico Tröger wrote:
On Thu, 30 Nov 2006 13:25:07 -0500, Bob Doan bdoan@sicom.com wrote:
All,
The attached patch stops geany from autocompleting XML in regular source files (Which I find annoying.....)
Thanks. Before applying, one question: What do you mean with regular source files? It shouldn't do anything if the current file is not handled by the XML or HTML lexer. So, the XML auto completion works or should work only for XML(including docbook), HTML and PHP (where mostly HTML code is embedded) files.
No ChangeLog this time
We'll do this for you, no need to touch the ChangeLog ;-).
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key _______________________________________________ Geany mailing list Geany@uvena.de http://uvena.de/cgi-bin/mailman/listinfo/geany
On Fri, 01 Dec 2006 13:22:01 -0500, Bob Doan bdoan@sicom.com wrote:
Hym,
Maybe the problem is a a deeper problem. I did the patch to make it stop completing things in PHP code, as it was driving me a little crazy..
If I have PHP code like:
xml .= "<Part fontSize="9" orientation="landscape" ...
And I attempt to do any object references, as soon as I type '>' in the '$object->' It would give me '</Part>'.
It should be better since r1046. I stopped the auto completion when a PHP file is open but the cursor is inside the <? ?> tags and not in a string (whether '...' or "...").
If you have something like
<? test = "<bla>blabla"; ?> and insert a '>' before the last " Geany will still auto complete because the cursor is in a string. And I think this should be ok, because if i remember correctly something "$object->method()" shouldn't work. Correct me if I'm wrong.
Another or additional way could be to suppress the auto completion is to check the character before the inserted '>' and if it is a '-' then skip auto completion.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key