Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
snippets:c:library_headers [2011/05/25 21:29] – codebrainz | snippets:c:library_headers [2011/05/26 23:58] (current) – codebrainz |
---|
==== Library Header file Snippet ==== | ===== Library Header file Snippet ===== |
| |
| |
| {{ :snippets:c:libheadersnippet.png?300|}} |
| |
This is an absurd, yet extremely useful snippet I use often. It is for creating a library header file in an existing file. This would be best as a [[http://www.geany.org/manual/current/index.html#file-templates|File Template]] but since the filename is important, it won't work like that. First open up your [[http://www.geany.org/manual/current/index.html#user-definable-snippets|Snippets]] file and copy & paste the following under the **[Special]** group: | This is an absurd, yet extremely useful snippet I use often. It is for creating a library header file in an existing file. This would be best as a [[http://www.geany.org/manual/current/index.html#file-templates|File Template]] but since the filename is important, it won't work like that. First open up your [[http://www.geany.org/manual/current/index.html#user-definable-snippets|Snippets]] file and copy & paste the following under the **[Special]** group: |
Now create a new file and save it with the correct filename (ex. foo.h), then in the blank file type '_h' and press TAB. Now you have all the boilerplate for your new library header file. Note that the snippet above requires you have [[http://www.python.org/|Python]] on your system. | Now create a new file and save it with the correct filename (ex. foo.h), then in the blank file type '_h' and press TAB. Now you have all the boilerplate for your new library header file. Note that the snippet above requires you have [[http://www.python.org/|Python]] on your system. |
| |
{{tag>c_snippet}} | {{tag>c snippet}} |