293 Commits

Author SHA1 Message Date
Nick Treleaven
751f8be508 Support more folding icon styles: arrows, +/- and no lines
(#2935059).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4854 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-04-22 17:16:46 +00:00
Nick Treleaven
138cbaa02f Use 3rd person (gets not get) for API function brief descriptions.
Avoid using 'convenience function' in API brief descriptions.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4757 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-03-12 18:15:48 +00:00
Nick Treleaven
9021717031 Use full function name for GeanyFunctions function pointers. This
avoids naming conflicts e.g. with C++'s 'new' keyword.
Remove deprecated header pluginmacros.h - use geanyfunctions.h instead.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4552 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-25 15:53:54 +00:00
Enrico Tröger
7ba4a81181 Update copyright information.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4518 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-01-01 22:55:18 +00:00
Enrico Tröger
9f9ceb1953 Add new style to change foreground and background colours for calltips (patch by Dimitar Zhekov, thanks, closes #2919229).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4513 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-29 18:45:21 +00:00
Nick Treleaven
10b817ed63 Fix segfault on startup (oops).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4475 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-07 18:08:35 +00:00
Nick Treleaven
5f28284cb1 Apply patch from Kelvin Gardiner to add Verilog filetype (thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4474 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-07 17:51:37 +00:00
Nick Treleaven
31520e4adc Only show debug message once if recursive lexer_filetype is set.
Tidy highlighting_init_styles code for filetype None handling.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4473 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-07 17:23:33 +00:00
Nick Treleaven
f133c5e144 Remove duplicate sci_set_keywords(), make argument const.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4472 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-07 14:17:40 +00:00
Nick Treleaven
6a93a7de1d Add debug message warning if recursive lexer_filetype is set.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4471 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-07 14:12:40 +00:00
Nick Treleaven
97c06cc48e Factor out function get_lexer_filetype().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4470 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-07 13:50:23 +00:00
Nick Treleaven
6bd830ec66 Highlight D & Java types from a global tags file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4469 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-07 13:24:11 +00:00
Nick Treleaven
9d804ba543 Use lexer_filetype=C configuration file key instead of duplicate
styleset functions for C++, C#, GLSL, Vala.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4468 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-03 16:22:33 +00:00
Nick Treleaven
066fb07e5a Remove now unnecessary "styling_within_preprocessor" C style key.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4467 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-03 16:08:06 +00:00
Nick Treleaven
4318e0dcd0 Move C-like filetype properties into configuration files.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4466 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-12-03 13:43:37 +00:00
Nick Treleaven
e47f7ef1e1 Fix lexer settings for custom filetypes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4447 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-24 16:47:35 +00:00
Nick Treleaven
0ae71f0ac5 Fix setting filetype properties when both the system and the user file
have properties set.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4445 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-24 16:22:14 +00:00
Nick Treleaven
9fdfc59a42 Make stylesets take a ft_id argument so they can be reused fully with
custom filetypes, so custom styles and keywords can be set.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4444 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-24 15:47:44 +00:00
Nick Treleaven
f92a31b59c Replace filetypes.xml html_asp_default_language key with
filetypes.html asp.default.language property in [lexer_properties]
group.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4433 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-18 17:07:12 +00:00
Nick Treleaven
c877db21df Use filetypes.foo [lexer_properties] group instead of hardcoding
lexer properties (more flexible e.g. for custom filetypes).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4432 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-18 16:48:17 +00:00
Nick Treleaven
67d868be14 Use default color scheme if pref color scheme file doesn't exist.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4403 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-05 18:03:34 +00:00
Nick Treleaven
9a649260c5 Only reload filetype files when changing color scheme, not all
configuration files.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4398 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-04 15:06:56 +00:00
Nick Treleaven
1748976317 Fix issue with default color not being reset if overridden with a
system default color.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4397 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-04 14:59:16 +00:00
Nick Treleaven
dfd1ea1782 Add utils_get_config_files().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4396 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-04 14:47:07 +00:00
Nick Treleaven
01b408c09b Add 'View->Editor->Color Schemes' menu, for now only shown if color
scheme files exist in a colorschemes config directory. Color scheme
files must end in ".conf" and currently only the [named_styles]
section is read.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4395 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-11-04 12:36:56 +00:00
Nick Treleaven
d17141ca9a Support loading global tags files for custom filetypes.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4343 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-20 12:07:12 +00:00
Nick Treleaven
7c450e2939 Add filetype "lexer_filetype" key so custom filetypes can use an
existing lexer.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4340 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-19 14:58:51 +00:00
Nick Treleaven
0b8c46a8a8 Add highlighting_set_styles() to API, use for Split Window plugin so
filetypes.common settings get set too.
Make highlighting_set_styles() take GeanyFiletype pointer instead of
filetype id.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4322 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-15 16:54:15 +00:00
Nick Treleaven
46ef07f0ab Change many SSM() macros to use sciwrappers.h instead.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4319 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-14 16:00:40 +00:00
Nick Treleaven
f47acb132c Call apply_filetype_properties() from styleset_c_like().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4291 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-04 12:15:29 +00:00
Nick Treleaven
90bdc7e35a Move new_styleset() and preprocessor setup code into styleset_c_like[_init]().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4290 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-04 11:55:50 +00:00
Nick Treleaven
1c29d0906d Fix 2 wrong uses of SSM() macro.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4289 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-04 11:19:46 +00:00
Nick Treleaven
3afd76aae1 Use sci_set_property() wrapper.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4288 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-04 11:15:26 +00:00
Enrico Tröger
62c474ffad Map global types (read from tags files) to keyword style for filetype Java.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4287 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-03 16:35:34 +00:00
Nick Treleaven
48c3918e13 Use jscript_keyword for SCE_HB[A]_WORD markup styles.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4276 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-10-01 11:16:12 +00:00
Nick Treleaven
d83caa6481 Add Vala keywords to conf file.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4270 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-30 12:10:24 +00:00
Nick Treleaven
783204f6ff Add sci_set_keywords() wrapper.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4260 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-28 16:27:14 +00:00
Nick Treleaven
b897991cad Remove filetype keyword defaults from the code - just read them from
configuration files.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4258 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-28 16:14:24 +00:00
Nick Treleaven
2f3a5ac325 Add apply_style_entries() to simplify implementing styleset_foo().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4257 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-28 15:55:49 +00:00
Nick Treleaven
deeef8d1d1 Remove style defaults from the code - just read them from
configuration files.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4256 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-28 15:33:05 +00:00
Nick Treleaven
e0bf328c15 Fix possible segfault in get_keyfile_int() if key value is malformed.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4247 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-27 16:38:37 +00:00
Nick Treleaven
c0dcc7002b Change new html_asp_default_language markup pref to use integer,
not hex in config file.
Fix minor issue with changing pref back to 0.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4246 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-27 16:16:18 +00:00
Nick Treleaven
4e386fcc2b Add get_keyfile_ints() instead of using tmp_style hack.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4245 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-27 15:59:58 +00:00
Enrico Tröger
edd50b5f6c Add "html_asp_default_language" pseudo style to filetypes.xml to allow setting the used language in embedded ASP code (patch by Ross McKay, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4235 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-24 17:12:36 +00:00
Nick Treleaven
1986d915cc Run ./scripts/fix-alignment.pl -w src/*.[hc] plugins/*.[hc] (skipping generated files).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4199 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-16 14:13:38 +00:00
Nick Treleaven
683e09aae5 Update syntax highlighting after changing the 'Invert syntax
highlighting colors' pref, instead of requiring a restart.
Remove filetypes.common invert_all option - use 'Invert syntax
highlighting colors' pref instead (closes #2854525).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4184 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-09-14 11:53:08 +00:00
Nick Treleaven
4c55a5506b Rename new_style_array -> new_styleset.
Rename styleset_free -> free_styleset.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@4081 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-14 11:13:22 +00:00
Nick Treleaven
352254b0ba Fix setting wordchars for custom filetypes.
Use style_sets array for custom filetypes too.
Replace styleset_none() with styleset_default().



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@4080 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-14 11:05:47 +00:00
Nick Treleaven
2bb49a38c8 Support adding custom filetype files e.g. filetype.Foo.conf. (Only
tested with empty file so far).
Allow GeanyFiletype::extension to be NULL.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@4070 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-12 11:19:54 +00:00
Nick Treleaven
9c0ced05d2 Call get_keyfile_wordchars() in highlighting_init_styles().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4067 ea778897-0a13-0410-b9d1-a72fbfd435f5
2009-08-11 14:18:44 +00:00