Colomban Wendling
298ce94c5d
Update for new Scintilla styles
2012-06-26 23:26:30 +02:00
Colomban Wendling
1c2c455b1d
Update copyright information
2012-06-18 01:15:04 +02:00
Nick Treleaven
edeaa521a2
Show info message if selection style is invisible, not warning
2012-06-08 13:28:07 +01:00
Nick Treleaven
7b3b65e27d
Add workaround for users with an invisible selection style
...
This is likely to be the case for any users that copied the system
selection style line as this was incorrectly set before, but not
applied.
2012-06-03 18:04:03 +01:00
Nick Treleaven
dd87e318cf
Fix applying default selection colors after editing 'selection' style
...
Default colors were not restored when disabling the override flags.
2012-06-03 17:38:30 +01:00
Nick Treleaven
563249f7c6
Warn user if current filetype might not support color schemes
...
If the 'default' style isn't set to a named style, then probably the
filetype styles have been overridden with manual colors and may not
work properly with color schemes.
Note: HTML-based filetypes won't show a warning because they don't
have a 'default' style (they use 'html_default' instead).
This is a simple heuristic, but is worth having to avoid some
spurious bug reports when using the color schemes dialog.
2012-05-29 18:05:56 +01:00
Colomban Wendling
2ed1d6d8bb
Do not apply color scheme upon color scheme selection dialog display
...
Current color scheme was applied upon color scheme selection dialog
display because the GtkTreeView::cursor-changed signal is emitted when
the tree view is initially shown (since it actually gets the focus for
the first time), uselessly re-applying the current color scheme.
This is a performance issue because when many documents are open
updating the color scheme can take a few seconds.
Now we watch for the GtkTreeSelection::changed signal on the tree
view's selection, which is only emitted when the selected item actually
changes. We also connect to that signal after filling the tree so we
don't get notified on the initial selection setup.
2012-05-27 20:25:19 +02:00
Colomban Wendling
e87f393192
Create color scheme menu item with Glade
...
Now there is a dialog instead of a menu for selecting the color
schemes, the item under View->Editor can be created with Glade like the
rest of the menu.
2012-05-27 01:14:25 +02:00
Nick Treleaven
9ddeed5254
Enable entity completion for XML documents
2012-04-13 17:41:52 +01:00
Nick Treleaven
6badca5201
Destroy color scheme dialog after closing instead of just hiding it
2012-03-15 16:12:32 +00:00
Matthew Brush
4e42814ead
Automatically show color scheme dialog scrollbars, set shadow type
2012-03-15 15:54:41 +00:00
Nick Treleaven
dcc079d814
Replace Color Schemes menu with custom dialog
...
A dialog makes it easier to select different items when comparing
themes, and easier to see the descriptions.
2012-03-14 16:56:55 +00:00
Matthew Brush
589ffff377
Add Scintilla wrapper function sci_set_lexer()
...
When the lexer is changed it clears all styling information and resets
the folding state.
Closes #3486917 and #3486918
2012-02-12 22:35:08 -08:00
Nick Treleaven
9426104f0b
Remove utils_build_path() - use g_build_filename instead
2012-02-06 16:41:18 +00:00
Matthew Brush
9ff4eec853
Fix Color Schemes menu items activation when used with libdbusmenu.
...
I'm not even going to try to explain why this fixes it :)
2012-01-30 21:32:16 -08:00
Nick Treleaven
b287553e4a
Use 'SETPTR' instead of 'setptr'
...
This makes it clearer we're using a macro.
2012-01-25 16:26:16 +00:00
Nick Treleaven
89a0a954e0
Remove unused parameter ft_id
2011-12-26 12:56:30 +00:00
Matthew Brush
b347b4a611
Improve handling of named styles and named colors
2011-12-26 00:37:16 -08:00
Matthew Brush
f3af82d40d
Handle failure of reading named style by trying to read it as a named color
...
TODO: find a better way to handle this and restore the removed warning
2011-12-25 16:40:18 -08:00
Matthew Brush
2fe42bfc0c
Support [named_colors] in filetypes.* and color schemes
2011-12-25 14:34:04 -08:00
Matthew Brush
8a04222301
Support normal and abbreviated HTML hex triplets in color schemes
2011-12-25 13:43:20 -08:00
Colomban Wendling
8942bc810b
Add Objective-C support
...
Based on a patch from Elias Pschernig, thanks.
Parser was taken from upstream CTags.
Closes patch#3325139.
2011-11-13 01:05:24 +01:00
Colomban Wendling
d8d6f2908e
Remove an unnecessary macro indirection
2011-11-11 20:02:59 +01:00
Colomban Wendling
511d5276a3
Merge apply_filetype_properties() into styleset_from_mapping()
2011-11-10 15:40:30 +01:00
Colomban Wendling
cc63453a97
Remove now unused old init_styleset_case() and rename new one
2011-11-10 15:35:03 +01:00
Colomban Wendling
ad1bc032ab
Port XML, HTML and PHP filetypes to new automated setup
...
This changes these three filetypes to "normal" ones rather than HTML
and PHP being hard-coded together with XML. Now the definitions
simply references each other and the filetypes.* files simply inherits
styling and keywords from the appropriate filetype.
This also makes these filetypes have their own Python styles like they
had their own JavaScript ones, rather than trickily reference the
Python ones.
2011-11-09 22:50:26 +01:00
Colomban Wendling
21e0c037da
Port DocBook filetype to new automated setup
2011-11-09 17:14:48 +01:00
Colomban Wendling
69769e0edc
Add support for EOLFILLED style flag
2011-11-09 17:14:05 +01:00
Colomban Wendling
80eeb484c6
Remove lexer argument from STYLESET_FROM_MAPPING()
2011-11-08 23:33:47 +01:00
Colomban Wendling
1a91e53586
Rewrite two functions for better readability
2011-11-08 23:30:34 +01:00
Colomban Wendling
ab2663e9ae
Refactor highlighting setup
2011-11-08 22:50:53 +01:00
Colomban Wendling
3f31453ace
Fix various integer sign and size issues
2011-11-06 01:12:42 +01:00
Colomban Wendling
19da0ce965
Fix or add a few Scintilla styles mappings
...
Closes #3432760 .
2011-11-06 00:02:06 +01:00
Colomban Wendling
24dd7330b2
Update code and comment styles for new Scintilla styles
2011-10-22 02:01:04 +02:00
Colomban Wendling
5fc6764b9b
Update highlighting styles for new Scintilla styles
2011-10-22 02:01:04 +02:00
Matthew Brush
bd5fba7eb5
Remove extra whitespace at end of lines in all source files.
...
* Processed with rstrip-whitespace.py script added to scripts/ directory.
* Script run on all .c and .h files in src/ and plugins/ directories.
* Also remove more than one newline at the end of files.
2011-10-11 21:52:58 -07:00
Colomban Wendling
d06e9f4575
Remove $Id$ and $Date$ SVN keywords
2011-10-09 22:57:35 +02:00
Nick Treleaven
be81fafafb
Use utils_get_setting() for string keys.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@6015 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-06 16:18:31 +00:00
Colomban Wendling
af1cc6dc14
Recognize C# and Vala raw and verbatim strings as string styles
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5863 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-26 21:47:28 +00:00
Colomban Wendling
5d606ce351
Deprecate ui_widget_set_tooltip_text() in favor of gtk_widget_set_tooltip_text()
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5840 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-13 18:41:50 +00:00
Nick Treleaven
003a11c576
Allow translations for color scheme [theme_info] keys.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5757 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-03 15:18:52 +00:00
Nick Treleaven
f09bac178d
Read color scheme name and description for menu item label and
...
tooltip (based on patch by Matthew Brush, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5751 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-30 16:24:53 +00:00
Colomban Wendling
b88a277a06
Add highlight for triple-quoted verbatims
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5697 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-08 00:13:37 +00:00
Colomban Wendling
7698bf60a7
Improve usage of G_(UN)?LIKELY()
...
G_(UN)?LIKELY() should be only used on whole conditional expressions,
and only if the branching is very highly predictable, not if it is only
more probable.
These macros should be used with care because a wrong prediction may
be a lot worst than what a good prediction can give.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5625 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-24 22:00:18 +00:00
Enrico Tröger
ec408fa4b9
Add filetype Cobol (based on a patch by Seth Keiper).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5533 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-30 15:03:51 +00:00
Enrico Tröger
6ac2623208
Update copyright information.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5528 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-19 19:39:09 +00:00
Enrico Tröger
f3b425fd64
Add and use secondary keywords for filetype JavaScript, update and sanitize JavaScript keyword lists (patch by Jason Oster, thank you).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5526 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-18 19:29:15 +00:00
Nick Treleaven
ddefb0a0b4
Add API functions (patch by Eugene Arshinov, thanks):
...
Move editor.c: is_{string,comment,code}_style() functions to
highlighting.c, add to API.
Add editor_find_snippet(), editor_insert_snippet(),
utils_find_open_xml_tag() to API.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5409 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-16 15:07:40 +00:00
Nick Treleaven
38e23095dd
Add Erlang filetype (patch by Taylor Venable, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5308 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-20 15:45:25 +00:00
Nick Treleaven
133d9439b9
Use radio buttons for View->Editor->Color Schemes menu.
...
Don't hide the menu when only the default item is available.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5305 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-10-20 11:49:50 +00:00