164 Commits

Author SHA1 Message Date
Enrico Tröger
85f73129c0 Apply patch from Daniel Richard G. to fix to fix several compiler warnings, C89 violations and minor code problems (thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2267 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-20 11:24:23 +00:00
Enrico Tröger
012622a209 Add two missing highlight styles to filetype Ruby.
Enable comment/uncomment for POD-like comments for filetypes Ruby and Perl.	 


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2179 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-17 14:30:40 +00:00
Enrico Tröger
e3201062c6 Update copyright information and change format of email addresses in source files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2150 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-01-06 18:11:57 +00:00
Enrico Tröger
639e23effa Use pluginmacros.h (for classbuilder and htmlchars plugins).
Add highlighting_get_style().
Add highlighting_get_style() to the plugin API.
Rename DocumentFuncs field in GeanyData struct to avoid name clashes.	      


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2103 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-12-16 11:27:59 +00:00
Enrico Tröger
9edb496fb9 Don't change control char symbol in Scintilla.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2046 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-13 14:46:58 +00:00
Enrico Tröger
4b43e762d0 Rename "Contruct autocompletion" to "Snippets".
Allow changing height of the symbol completion list even if automatic symbol is disabled, it still can be forced by keybinding.	 


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2044 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-12 09:27:43 +00:00
Nick Treleaven
046d5ef796 Fix bug with using the default extension, not the user set one, if
'New with template' is used before any documents of the same filetype
are open.
Load filetype keyfiles from filetypes_load_config(), not from
styleset_foo_init().
Add highlighting_init_styles(), highlighting_set_styles(),
simplifying a lot of styleset function code.
Remove filetype::style_func_ptr field.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2011 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-11-02 17:44:05 +00:00
Enrico Tröger
7419f18f88 Fix wrong colouring of type keywords of tags from different filetypes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1934 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-10-09 12:04:15 +00:00
Nick Treleaven
d58addc900 Undo last commit, because it makes selecting text with the mouse
include all trailing lines with no wordchars on them.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1846 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-31 12:01:22 +00:00
Nick Treleaven
94dd025c04 Include \n\r newline chars in Scintilla whitespace chars.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1845 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-31 11:42:58 +00:00
Nick Treleaven
719c2131cf Fix wrong brace formatting.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1819 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-24 11:31:27 +00:00
Nick Treleaven
ef1399e000 Rename MyApp -> GeanyApp.
Move most GeanyApp fields into:
GeanyPrefs for (most) Preferences dialog fields;
UIPrefs for non-Prefs dialog visual settings;
UIWidgets for less commonly used widgets such as menuitems and
dialogs;
GeanyStatus for various states the application can be in.
Move some GeanyApp fields into EditorPrefs (and one into each of
CommandLineOptions and SidebarTreeviews).
Add plugin API prefs field.
Move disabling build widgets on Windows to build_init().
Make build callbacks static.
Add treeviews_init() to prepare popup menus and open files treeview.
Replace treeviews_find_node() with treeviews_select_openfiles_item().
Make utils_isbrace() and utils_is_opening_brace() take an
'include_angles' argument (to separate from editor_prefs).
Make 'Goto matching brace' keybinding include <> angle brackets.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1815 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-08-23 11:34:06 +00:00
Nick Treleaven
57561a1ebb Ignore whitespace_chars for Haxe.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1746 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-26 12:03:14 +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
8dbbe603c9 Add custom wordchars and whitespace_chars support for Python & Ruby.
Group setting lexer, wordchars, autocompletion height together in
apply_filetype_properties().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1688 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-11 15:01:24 +00:00
Nick Treleaven
8fc2269868 Add decorator (and word2) styling for Python.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1676 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-07 15:39:25 +00:00
Nick Treleaven
6657b7983b Make Scintilla's move to word commands use the word end boundaries
when moving to the right (like e.g. GtkEntry).
Treat punctuation chars as whitespace.
Add filetypes.common setting: whitespace_chars.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1672 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-07-07 11:33:32 +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
fdaa689bff Rename sci_cb.[hc] editor.[hc].
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1584 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-28 16:07:30 +00:00
Nick Treleaven
c074639def Fix bug when loading custom filetypes.common styles.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1538 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-16 12:26:53 +00:00
Nick Treleaven
ea5f82976f Show fold line by default (so it's clearer there are hidden lines).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1537 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-15 16:04:37 +00:00
Enrico Tröger
1b41744c27 Applied patch from Michal Kurgan to disable separately use of global white space foreground and background colours (thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1536 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-15 15:39:26 +00:00
Nick Treleaven
479066fb19 Prevent double loading of common styles when filetype none is used
before other filetypes.
Replace init_styles() with direct initialization of style_sets.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1525 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-11 13:01:50 +00:00
Nick Treleaven
6a53d1e307 Load global tag files stored in ~/.geany/tags when needed.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1521 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-05-11 11:58:56 +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
Enrico Tröger
637d862881 Added option to change the caret width.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1408 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-20 18:15:07 +00:00
Enrico Tröger
ff25b2770c Init the default styles before first usage.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1392 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-13 17:39:09 +00:00
Enrico Tröger
fe40f61740 Fixed wrong margin colours for filetype All/None.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1391 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-13 17:08:13 +00:00
Enrico Tröger
0b84fced12 Added style "default" to filetypes.common to be able to change the default style for files without a filetype set.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1380 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-09 18:14:34 +00:00
Enrico Tröger
b88cd0a597 Set default highlighting style for filetype None to get it also inverted if invert_all is set.
Reset all previously defined styles when switching filetype to None.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1378 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-09 15:38:31 +00:00
Enrico Tröger
90b01daf35 Fixed several compiler warnings (mainly shadowing local variables and unreachable code).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1376 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-09 13:52:26 +00:00
Enrico Tröger
2c36e81797 Added support for secondary keywords for filetypes C and C++.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1360 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-02 16:04:29 +00:00
Enrico Tröger
66b75da8a2 Added missing keywords: as, with, False, None and True.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1354 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-01 22:16:58 +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
Enrico Tröger
a6afb4577c Added several missing style types for filetype Ruby.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1303 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-18 12:55:54 +00:00
Enrico Tröger
a7273d747d Added several missing style types for filetype Perl (thanks to John Gabriele for reporting).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1287 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-15 14:17:53 +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
2b0740a5fa Added sci_set_use_tabs().
Fixed mem leak in sci_cb_auto_forif().
Moved free_pointers() to utils.c.
Applied patch from Jeff Pohlmeyer to add an option for using spaces or tabulators when inserting some whitespace.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1186 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-14 17:09:17 +00:00
Nick Treleaven
0a29909408 Fix segfault when setting Lua filetype.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1184 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-14 12:45:29 +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
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
7365ae3c9c Colourise C enum, union and D/Java interface typenames.
Add sci_cb_lexer_get_type_keyword_idx() for use when finding if a lexer
supports typename colouring.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1105 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-16 17:18:53 +00:00
Nick Treleaven
5eb6cb7bc2 Show D typedefs in bold.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1100 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-15 12:40:18 +00:00
Enrico Tröger
574d3d3b7e Added new scintilla lexer for D. It needs testing and there is more work to do to get it working properly.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1058 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-07 15:47:00 +00:00
Nick Treleaven
96cc367ecc Move C/C++ styling_within_preprocessor code out of C-like styles.
Use styleset_c_like() when applying C-like Scintilla styles.
Synchronize gsd_reserved_word, gsd_system_word and data/filetypes.d
with styles in data/filetypes.c.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1048 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-04 14:57:06 +00:00
Enrico Tröger
4469c37c42 Added new style for doc keyword error and added some doc key words for Doxygen and Javadoc.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1043 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-03 22:11:42 +00:00
Enrico Tröger
12868db176 Use the same style for unknown doc keywords (/** @something */) as for known keywords.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1042 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-02 18:13:42 +00:00
Nick Treleaven
4cbe4f4170 Only use [a-zA-Z0-9] chars for default wordchars, to avoid problems
with word matching when using Find & Replace functions.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1020 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-23 11:42:10 +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