60 Commits

Author SHA1 Message Date
Enrico Tröger
725ae82446 Added new filetype Haskell (patch by Guillaume Hoffmann, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1510 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-06 14:05:43 +00:00
Nick Treleaven
45a3a84697 Use the more common .pl suffix for the default Perl extension.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1509 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-05 17:01:59 +00:00
Nick Treleaven
4a7d4da2be Separate filetype menu item creation from filetypes_init_types() so
it can be called without initializing GTK (for non-GUI commands).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1478 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-25 15:01:14 +00:00
Nick Treleaven
14001ddc8f Split filetypes_get_from_filename() into filetypes_detect_from_file()
and filetypes_detect_from_filename().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1460 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-18 12:12:51 +00:00
Nick Treleaven
05164ab8ae Remove wrong UTF-8 conversion in filetypes_get_from_filename().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1455 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-16 11:10:22 +00:00
Enrico Tröger
398ddf6d73 Added context actions to run custom commands on current selection or the current word below cursor.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1453 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-04-15 18:09:59 +00:00
Enrico Tröger
f486728aed Added new file filter for Open File dialog to only show supported source files (list of all defined filename extensions).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1356 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-01 22:38:31 +00:00
Nick Treleaven
2df920bbe9 Use utils_strv_new() for all filetype patterns.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1343 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-27 14:53:37 +00:00
Enrico Tröger
3ddb830c07 Added *.pod to Perl file patterns.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1335 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-25 16:33:44 +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
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
Nick Treleaven
d39c458655 Add *.rej as a Diff filename pattern.
Add utils_strv_new() to duplicate a va_list of strings.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1263 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-08 16:26:45 +00:00
Enrico Tröger
0dd8de529d Added *.xsd to XML file patterns.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1224 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-24 18:01:58 +00:00
Enrico Tröger
43d8e7ecef jsp is a Java extension.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1189 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-14 17:46:39 +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
e458304ce3 Make all filetypes except LaTeX use the same build menu, disabling
any items that don't apply for the current document.
Move BuildMenuItems struct type to build.h.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1038 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-30 15:42:52 +00:00
Nick Treleaven
e39cf19730 Make stop button only apply for killing running programs.
Disable build commands when building is in progress.
Make build_menu_update() detect how to call set_stop_button().
Make build_menu_update() also update the LaTeX build menu.
Make build keybindings only active when the equivalent menu item
is also active.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1036 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-29 10:29:34 +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
Enrico Tröger
9b7569e3ef Added new filetype VHDL.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@991 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-13 22:11:19 +00:00
Nick Treleaven
d6500e59ea Recognise *.xsl, *.xslt filenames for XML filetype.
Recognise 'GNUmakefile' filename for Make filetype.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@967 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-04 12:49:55 +00:00
Nick Treleaven
17bbfa3644 Add filetypes_get_conf_extension() and use in highlighting.c.
Fix a memory leak in load_keyfiles().
Group C-like default syntax in init_c_like_styleset().
Make C-like comment colour darker; make globalclass brighter to
distinguish it from word colour.
Make Java use same default syntax highlighting colours as C.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@936 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-27 11:30:23 +00:00
Enrico Tröger
86ffa880d9 Added shebang detection for D files (dmd).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@918 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-22 17:30:24 +00:00
Enrico Tröger
d4704e4656 Fixed tagmanager lang index for filetype Diff.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@892 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-12 23:02:59 +00:00
Enrico Tröger
adc721c522 Added simple parser for filetype Diff to create tags for each patched file in a diff file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@883 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-11 19:45:40 +00:00
Enrico Tröger
ac359bc327 Implemented simple "shebang" detection.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@869 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-06 23:23:05 +00:00
Enrico Tröger
6f00febd3c Fixed crash when using "Make object" on new files(closes #1570818).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@866 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-04 19:14:57 +00:00
Nick Treleaven
88ff2d5085 Save the build includes and arguments on quitting.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@857 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-01 16:14:45 +00:00
Enrico Tröger
5aaf298e10 Added pattern *.agi for filetype Perl (closes #1567355).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@848 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-29 07:22:46 +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
b1b4a4e157 Split filetype PHP/HTML into PHP and HTML.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@779 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-01 17:07:49 +00:00
Enrico Tröger
010d6581e5 Added new filetypes Diff and Ferite.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@765 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-27 17:39:34 +00:00
Nick Treleaven
0bd427bd05 Remove filetypes.h and Scintilla includes from geany.h; Add VALID_DOC_IDX macro
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@751 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-20 20:39:59 +00:00
Enrico Tröger
8d581d1552 Added new filetype Fortran 77 (not yet finished).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@724 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-15 17:57:41 +00:00
Nick Treleaven
55edaf557a Use unique filetype id in geany.conf to avoid new filetype problems; Make unique id numbers compatible with Geany 0.7 filetype order
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@672 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-05 12:25:49 +00:00
Nick Treleaven
ed0b029db8 Set radio item None for new files
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@670 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-04 21:03:12 +00:00
Enrico Tröger
afa4c4104e Made document related submenus(filetype, encoding, line endings) radio buttons for better usability.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@668 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-03 22:17:10 +00:00
Nick Treleaven
794ad69ad1 Add Make pattern to recognise makefile*
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@660 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-01 20:07:58 +00:00
Enrico Tröger
8d06fef254 Reordered the filetypes (just a cosmetic change).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@627 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-25 10:13:35 +00:00
Enrico Tröger
b56ea420b1 Added *.cfg as extension for config files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@604 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-22 13:52:07 +00:00
Enrico Tröger
b3b50b4182 Fixed autocompletion for filetype C++.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@553 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-14 10:15:12 +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
Enrico Tröger
590974e3ba Add mk pattern for Makefile.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@490 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-26 16:22:37 +00:00
Enrico Tröger
3a435bf29e Replaced 'blank' by 'include "..."'. Fixed a bug in utils_brace_match() which prevents correctly matching.
Made auto completion work only for the current filetype (i.e. it hides symbols from other filetypes).
Removed unneeded code.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@474 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-24 14:36:35 +00:00
Enrico Tröger
a693e0a6dd Added additional patterns to detect configure scripts as Shell scripts
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@426 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-10 14:37:24 +00:00
Enrico Tröger
df1b9fd010 new filetype Tcl/Tk, renamed tex.c
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@335 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-05-16 19:04:04 +00:00
Enrico Tröger
78eb7280b8 read the filetype definitions first from the configuration directory and then from the datadir (%prefix/share/geany)
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@334 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-05-15 19:49:30 +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
002503decd several bugfixes and improvements
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@281 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-04-27 18:06:35 +00:00
Enrico Tröger
8b5cc84381 added new extensions for filetype Pascal
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@244 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-03-10 21:45:20 +00:00