23 Commits

Author SHA1 Message Date
Nick Treleaven
c0b36f4d01 Make file header optional for filetype templates - use the string
'{fileheader}' to mark where the file header should be placed, which
can be anywhere in the filetype template.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1433 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-31 11:39:56 +00:00
Nick Treleaven
806dd5be1d Add descriptions for all .c source files below the file header.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1329 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-24 11:41:56 +00:00
Nick Treleaven
cbbb69dec9 Don't include filetype.none in the new file template menus.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1325 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-23 15:50:29 +00:00
Nick Treleaven
61146eb323 Support filetype templates for all filetypes (scan
~/.geany/templates/filetype.* at startup).
Default templates are now created in init_ft_templates().
Move on_new_with_template() to templates.c.
Move on_filetype_change() to filetypes.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1305 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-19 13:26:06 +00:00
Enrico Tröger
7b61ad934d Updated copyright information.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1188 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-14 17:36:42 +00:00
Enrico Tröger
f0d4e65311 Added new filetypes Javascript and Lua.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1181 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-13 20:16:09 +00:00
Nick Treleaven
2307541285 Fix sign comparison warning.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1165 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-07 13:07:09 +00:00
Enrico Tröger
7b11469786 Save template files in a subdirectory "templates" inside Geany's configuration directory.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1163 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-06 18:00:34 +00:00
Enrico Tröger
66df9594ed Added template for BSD licence.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1161 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-06 15:38:44 +00:00
Enrico Tröger
b53385de1d Removed multiline template because it makes not much sense, instead just comment three lines using the general comment functionality.
Removed special templates for Pascal and some other filetypes using "#" as comment char. The comment characters for fileheader and GPL templates are now added dynamically according to the current filetype.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1160 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-06 15:03:53 +00:00
Nick Treleaven
7170df59b8 Added filetype_id typedef so that GEANY_FILETYPES_* can be shown
when debugging (also renamed some filetype_id variable names).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1155 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-03 16:21:44 +00:00
Nick Treleaven
c3300b2da9 Add NULL-safe FILETYPE_ID macro to get filetype::id from pointer.
Allow insertion of GPL notice and file header when the filetype is
not set.
Add commenting for PHP & HTML GPL notice and file header templates.
Add make_comment_block() to templates.c.
Move document_prepare_template(), filetypes_get_template() to
templates.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@994 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-14 16:03:25 +00:00
Nick Treleaven
13ed16e2c8 Added a blank line indent for templates D, HTML, PHP.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@859 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-02 11:14:36 +00:00
Nick Treleaven
f180e9a863 Move all static strings from templates.h to templates.c.
Fix sign comparison warning.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@819 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-17 19:58:04 +00:00
Enrico Tröger
d7951f66d0 Added new file template for filetype HTML.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@791 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-05 16:55:40 +00:00
Enrico Tröger
d79e82f633 Moved prototype for geany_debug() to main.h.
Moved declaration of document struct to document.h.
Keep selection when commenting and uncommenting code.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@750 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-20 15:47:18 +00:00
Enrico Tröger
6cc29173be Added new filetype D(patch by Christop Berg, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@544 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-09 14:41:53 +00:00
Nick Treleaven
6010e5bf13 Cache the current function name for efficiency in utils_get_current_function, other related fixes
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@451 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-16 17:11:09 +00:00
Nick Treleaven
810714deb1 insert the file type extension and fix a warning when inserting a fileheader in a new document
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@357 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-05-22 15:28:48 +00:00
Enrico Tröger
2be53d0f07 added template support for filetypes with comment character #, updated GPL to the current address of the FSF
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@318 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-05-10 19:54:44 +00:00
Enrico Tröger
0de048dc15 added new wildcard {geanyversion} to have actual Geany version in filetype templates (e.g. HTML template)
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@160 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-02-01 16:05:40 +00:00
Enrico Tröger
b0205e6e99 added $Id$ - tag
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@72 ea778897-0a13-0410-b9d1-a72fbfd435f5
2005-12-20 17:50:11 +00:00
Enrico Tröger
8cb2cf0997 Initial import
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4 ea778897-0a13-0410-b9d1-a72fbfd435f5
2005-11-22 12:26:26 +00:00