238 Commits

Author SHA1 Message Date
Nick Treleaven
59cb3b2cce Apply patch from Andrew Rowland to add support for the R language
(thanks, #2121502).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3004 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-26 12:23:59 +00:00
Enrico Tröger
83d6c2e8e2 Fix using direct Scintilla access in document.c and callbacks.
Add wrapper functions instead.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3000 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-25 18:29:53 +00:00
Enrico Tröger
a6ce9b8a6d Replace the usage of the old Scintilla indicator API by the new modern API and remove old hacks (patch by Jason Oster, thanks).
Add new sci_indic_clear() function to the plugin API.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2966 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-17 18:05:27 +00:00
Enrico Tröger
46d790cdeb Add missing 'directive' style to filetype CSS (patch from Jason Oster, #2114697, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2962 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-17 18:00:37 +00:00
Enrico Tröger
d860305049 Add missing HTML attribute 'xml:lang'.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2932 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-09-10 11:28:33 +00:00
Nick Treleaven
6ce421f141 Add OpenGL Shader Language (GLSL) filetype (patch from Colomban
Wendling, thanks; closes #2060961).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2908 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-27 12:44:54 +00:00
Nick Treleaven
a2fbc3a949 Rename HighlightingStyle to GeanyLexerStyle.
Add dox for highlighting_get_style(), GeanyLexerStyle, mentioning
SCI_STYLEGETFORE.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2903 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-26 12:43:46 +00:00
Nick Treleaven
346967c112 Add assert statements to check that the StyleSet styling arrays are
not exceeded.
(Also make highlighting_get_style() work with all filetypes, but
probably we should remove this from the API; plugins could just use
the SCI_STYLEGET* functions instead).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2902 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-26 09:48:18 +00:00
Enrico Tröger
ee3db9554a Add some keywords for filetype SQL (patch by Felipe Pena, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2850 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-01 15:56:37 +00:00
Enrico Tröger
7cd303af3f Add four new PHP 5.3 keywords (patch by Felipe Pena, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2846 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-08-01 15:52:42 +00:00
Enrico Tröger
56de0f6641 Add missing "error" and heredoc styles to filetype Shellscript (related to #2026853).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2814 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-25 09:48:55 +00:00
Enrico Tröger
ed016dc093 Split filetype Fortran into Fortran 77 and Fortran 90.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2777 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-07-14 18:27:20 +00:00
Enrico Tröger
1a1361db57 In templates_free_templates() destroy also file template menu items.
Add reload argument to filetypes_load_config() to allow re-reading of the settings.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2737 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-06-30 15:59:00 +00:00
Enrico Tröger
340dccfb73 Remove hotspot code as it was never really used.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2572 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-12 12:28:34 +00:00
Enrico Tröger
abfbc59c3f Use Javascript styles for any VBScript and ASP code embedded in a HTML file.
Use Python styles for embedded Python code.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2570 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-12 12:20:49 +00:00
Nick Treleaven
00c722966c Rename GEANY_FILETYPES_ALL GEANY_FILETYPES_NONE.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2556 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-07 13:54:21 +00:00
Nick Treleaven
67316db4c5 Remove GEANY_MAX_FILE_TYPES and replace most uses of it with
filetypes_array->len.
Highlighting and templates now use GEANY_MAX_BUILT_IN_FILETYPES.
Move print_filetypes() out of parse_command_line_options();


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/custom-filetypes@2553 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-05-07 11:34:38 +00:00
Enrico Tröger
cec6e18c61 Unify the embedded JavaScript styles with the styles of the JavaScript filetype for a more consistent styling of JavaScript in general.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2525 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-24 14:17:11 +00:00
Enrico Tröger
86c710e612 Update PHP keywords (closes #1939931).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2473 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-04-11 15:59:44 +00:00
Enrico Tröger
5c01fffbc8 Add styles to customize line and search marker and add translucency setting.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2387 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-23 14:57:53 +00:00
Enrico Tröger
d8f028f888 Add additional keyword group for python and slightly change the foreground colour for style "word2".
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2357 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-17 17:22:24 +00:00
Enrico Tröger
820c09ecfa Add opton to style "caret" to change the caret into a block caret.
Add new styles "translucency", "line_wrap_visuals" and "line_wrap_indent" to filetypes.common (#1905141).


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2312 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-03-07 15:42:46 +00:00
Enrico Tröger
b7bfb2743a Replace all C++-style comments with usual C-like multi-line comments.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2287 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-27 13:17:29 +00:00
Nick Treleaven
d705dde953 Move symbols_global_tags_loaded() out of styleset_common().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@2285 ea778897-0a13-0410-b9d1-a72fbfd435f5
2008-02-26 17:11:02 +00:00
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