Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
snippets:c:library_headers [2011/05/25 21:29] codebrainzsnippets:c:library_headers [2011/05/26 23:58] (current) codebrainz
Line 1: Line 1:
-==== 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:
Line 15: Line 18:
 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}}
Print/export