<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 12 September 2013 17:18, Sean Noble <span dir="ltr"><<a href="mailto:sean.noble.72@gmail.com" target="_blank">sean.noble.72@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Geany Users,<br>
<br>
I am looking for a way to share the same snippets in two file types A<br>
and B. Ideally allowing each file type to have shared and unique<br>
snippets, but just sharing the same ones would be OK too.<br></blockquote><div><br></div><div>There is no way of sharing snippets without some repetition.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
In snippets.conf I have a list of [HTML] file snippets. I would like<br>
to use those snippets in [PHP] files as well.<br>
<br></blockquote><div><br></div><div>Makes sense.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I could just copy the snippets from [HTML] to [PHP] but that seems<br>
redundant, and means having to add new snippets in two places. I could<br>
also put all the snippets under [Default], and that would work pretty<br>
well, but then all the snippets would be available in all file types.<br></blockquote><div><br></div><div>What you can do is define the common snippets under the [special] group and then the language sections where you want them to be available can refer to the special snippet.  Look at how say brace_open is used in the standard snippets.conf file.</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I was wondering if there is a trick like [HTML, PHP] as a shared<br>
header (that appears not to work). Maybe something I can set in<br>
filtypes.html or filetypes.php to treat them as the same file type?<br></blockquote><div><br></div><div>No.</div><div> </div><div><br></div><div>Cheers</div><div>Lex</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
Thanks for any help!<br>
<br>
Cheers,<br>
Sean<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.geany.org">Users@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/users" target="_blank">https://lists.geany.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div></div>