79 Commits

Author SHA1 Message Date
Nick Treleaven
51f619f0ec Rewrite filetypes_get_from_uid() for easier maintenance.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1794 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-14 15:36:12 +00:00
Nick Treleaven
5be30988c8 Add comment about generating filetype_extensions.conf.
Update filetype_extensions.conf.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1793 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-14 15:24:01 +00:00
Nick Treleaven
b9c0dcdc8b Sort filetype groups alphabetically.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1792 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-14 15:11:54 +00:00
Nick Treleaven
2e454f7af5 Add reStructuredText filetype and parser.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1791 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-14 11:50:03 +00:00
Enrico Tröger
75c74284f8 Add filetype Haxe (patch by blackdog, thank you).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1744 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-26 09:50:12 +00:00
Nick Treleaven
ae6de4f5c6 Use extern 'app' and 'filetypes' global variables in headers, so that
G_MODULE_BIND_LOCAL can later be used when loading plugins to detect
any unresolved symbols.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1725 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-19 11:49:53 +00:00
Enrico Tröger
f158ea71a1 Fix compiler warnings.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1712 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-17 08:39:17 +00:00
Enrico Tröger
7f1dd7dacc Add shebang-like detection for PHP files starting with "<?php".
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1697 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-12 18:07:49 +00:00
Enrico Tröger
f7d95e736e Change name of XML filetype to "XML document".
Add sub menus to "Set Filetype" menu.      


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1680 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-09 12:46:16 +00:00
Enrico Tröger
693649f955 Add new filetypes CSharp and FreeBasic.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1635 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-06-22 17:34:31 +00:00
Nick Treleaven
5492a6d99b Use filetype_has_tags().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1580 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-26 15:26:05 +00:00
Nick Treleaven
58e151698e Replace filetype::has_tags member with filetype_has_tags().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1578 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-26 12:13:53 +00:00
Enrico Tröger
81c4fd0c5e Better to use setptr macro.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1577 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-26 09:23:44 +00:00
Enrico Tröger
375026cd00 Ignore case of filename extensions on Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1576 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-26 09:03:02 +00:00
Enrico Tröger
6e630eb8ae Add shebank-like detection for XML files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1573 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-25 15:19:23 +00:00
Enrico Tröger
db9271df29 Add *.ash and *.bash as filetype entensions for filetype SH.
Add ash and wish to the shebang patterns.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1571 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-25 13:08:17 +00:00
Enrico Tröger
12104026d0 Backport changes from CTags SVN to fix parse problems in the Ruby parser.
Add filetype extension "*.ruby".


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1563 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-23 14:26:52 +00:00
Nick Treleaven
e3ffabcdea Add Haskell tags support from CTags patch on sf.net written by Peter
Strand (thanks).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1558 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-23 12:32:06 +00:00
Nick Treleaven
cc3d26df71 Add some menu separators to group filetype menu items.
Reorder Haskell, O-Matrix, VHDL filetypes.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1530 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-14 12:55:55 +00:00
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