[Geany] tag completion

Lex Trotman elextr at xxxxx
Tue Jan 18 00:29:10 UTC 2011


On 18 January 2011 11:13, Dominic Hopf <dmaphy at 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 at googlemail.com>
> http://dominichopf.de/
>
> Key Fingerprint: A7DF C4FC 07AE 4DDC 5CA0 BD93 AAB0 6019 CA7D 868D
>
> _______________________________________________
> Geany mailing list
> Geany at uvena.de
> http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
>
>



More information about the Users mailing list