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
Enrico Tröger
6330277845
Changed commentdoc(used for javadoc and Doxygen, /** */) colour to a light blue.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@982 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-09 19:02:18 +00:00
Nick Treleaven
67ce2f51b0
Move utils_get_tag_list() to symbols.c, make utils_find_tm_tag()
...
static.
Move symbols_get_global_keywords() to get_global_typenames() in
highlighting.c.
Add symbols_find_tags_as_string(), symbols_get_tag_list(),
symbols_get_macro_list(), symbols_find_in_workspace() from various
tag-related existing code.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@976 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-08 11:42:05 +00:00
Enrico Tröger
491288aec2
Added an option to draw an horizontal line above or below folded text.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@974 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-07 18:53:39 +00:00
Enrico Tröger
84fc71ef56
Added Java keywords true and false.
...
Converted "NULL" to lower case.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@970 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-06 20:56:18 +00:00
Enrico Tröger
dd47b2bf62
Applied patch from Bob Doan to do not set keywords for XML documents(thanks).
...
Made styleset_markup() static.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@968 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-04 22:38:11 +00:00
Nick Treleaven
6ff4464f9c
Make all remaining 0xff0000 comment styles darker using a common
...
default comment style.
Add some other generic styles (used only by C-like filetypes for
now).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@960 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-02 15:32:27 +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
Nick Treleaven
72f287fe0f
Move geany_debug prototype to geany.h so that all files can use it
...
without a dependency on main.h.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@912 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-21 11:16:54 +00:00
Enrico Tröger
3564dffe56
Fixed several highlighting errors, added new styles: identifier2, important and id.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@880 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-10 17:28:12 +00:00
Enrico Tröger
b2c6eeab4b
Added some new keywords for filetype Ferite.
...
Added auto completion for iferr construct for filetype Ferite.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@872 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-08 15:52:31 +00:00
Enrico Tröger
87493e9481
Changed foreground colour for LaTeX sytle "math" to differentiate it from the "comment" style.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@870 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-06 23:40:58 +00:00
Enrico Tröger
cfb71b3657
Added keyword "until".
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@864 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-03 13:45:30 +00:00
Nick Treleaven
762f4b5c91
Move global tags code to symbols.c.
...
Added symbols_global_tags_loaded(), symbols_get_global_keywords().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@860 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-10-02 11:31:54 +00:00
Nick Treleaven
e721ae69b0
Changed StyleSet struct to use Style array, which can use less
...
memory. Added separate struct for the common style set. Also
use a struct for tracking the loaded global tags files. Renamed
some static functions.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@854 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-30 11:13:58 +00:00