Hello, I can't find instructions on how to add a tag to be automatically completed when I type the first part. For example, when I type <p>, the closing tag, </p>, automatically shows up after my blinking insertion bar. I'd like to add one of these for the standard PHP opening delimeter, <?php. I'd like the closing delimeter, ?>, to pop up right after I type that. Is there a way to do this? Pointing me to instructions I overlooked is fine.
Am Montag, den 17.01.2011, 18:40 -0500 schrieb Kete:
Hello, I can't find instructions on how to add a tag to be automatically completed when I type the first part. For example, when I type <p>, the closing tag, </p>, automatically shows up after my blinking insertion bar. I'd like to add one of these for the standard PHP opening delimeter, <?php. I'd like the closing delimeter, ?>, to pop up right after I type that. Is there a way to do this? Pointing me to instructions I overlooked is fine.
This usually is done with XML stuff I guess. Since the <?php tag is missing the closing brace (>), it most likely isn't considered as XML code itself.
I'd suggest to work around this using snippets. Add something like this to your snippets.conf:
php=<?php\n%cursor%\n?>
See the manual at http://www.geany.org/manual/#user-definable-snippets for detailed information how those snippets work. :)
Regards, Dominic
On 18 January 2011 11:13, Dominic Hopf dmaphy@googlemail.com wrote:
Am Montag, den 17.01.2011, 18:40 -0500 schrieb Kete:
Hello, I can't find instructions on how to add a tag to be automatically completed when I type the first part. For example, when I type <p>, the closing tag, </p>, automatically shows up after my blinking insertion bar. I'd like to add one of these for the standard PHP opening delimeter, <?php. I'd like the closing delimeter, ?>, to pop up right after I type that. Is there a way to do this? Pointing me to instructions I overlooked is fine.
This usually is done with XML stuff I guess. Since the <?php tag is missing the closing brace (>), it most likely isn't considered as XML code itself.
I'd suggest to work around this using snippets. Add something like this to your snippets.conf:
php=<?php\n%cursor%\n?>
See the manual at http://www.geany.org/manual/#user-definable-snippets for detailed information how those snippets work. :)
Regards, Dominic
Dominic is right, the way to go is using snippets. Automatically adding the XML/HTML closing tag is hard coded in Geany, its not reconfigurable.
Cheers Lex
-- Dominic Hopf dmaphy@googlemail.com http://dominichopf.de/
Key Fingerprint: A7DF C4FC 07AE 4DDC 5CA0 BD93 AAB0 6019 CA7D 868D
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
thanks a lot! that works perfectly
On Monday January 17, 2011 7:13:29 pm Dominic Hopf wrote:
I'd suggest to work around this using snippets. Add something like this to your snippets.conf:
php=<?php\n%cursor%\n?>
See the manual at http://www.geany.org/manual/#user-definable-snippets for detailed information how those snippets work. :)
Regards, Dominic