Make Python use named styles for color scheme support - use

alt.conf color scheme if you want the old colors.
Add named style 'function'.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5339 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2010-10-28 12:58:12 +00:00
parent 879ef25b09
commit cf1a664692
4 changed files with 32 additions and 25 deletions

View File

@ -2,6 +2,11 @@
* data/filetypes.xml: * data/filetypes.xml:
Match data-* and aria-* as HTML attributes. Match data-* and aria-* as HTML attributes.
* data/colorschemes/alt.conf, data/filetypes.common,
data/filetypes.python:
Make Python use named styles for color scheme support - use
alt.conf color scheme if you want the old colors.
Add named style 'function'.
2010-10-27 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> 2010-10-27 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>

View File

@ -1,24 +1,21 @@
# Set of styles like the Geany <= 0.19 Python/script defaults with gray comments. # Set of styles like the Geany <= 0.19 Python/script defaults with gray comments.
[named_styles] [named_styles]
# style names to use in filetypes.* [styling] sections # see filetypes.common for details
# use foreground;background;bold;italic
# normally background should be left blank to use the "default" style
default=0x000000;0xffffff default=0x000000;0xffffff
comment=0x808080 comment=0x808080
commentdoc=0x404000 commentdoc=0x404000
number=0x400080 number=0x400080
# keyword
word=0x600080;;true word=0x600080;;true
# e.g. global types from a *.c.tags file
word2=0x9f0200;;true word2=0x9f0200;;true
string=0x008000 string=0x008000
preprocessor=0x007f7f preprocessor=0x808000
operator=0x300080 operator=0x300080
# unterminated string
stringeol=0x000000;0xe0c0e0 stringeol=0x000000;0xe0c0e0
type=0x0000d0;;true # this is a bit dim, may want to change
type=0x003030;;true
function=0x000080

View File

@ -109,11 +109,15 @@ commentdoc=0x3f5fbf
number=0x007f00 number=0x007f00
# keyword # keyword
word=0x00007f;;true;false word=0x00007f;;true;false
# e.g. global types from a *.c.tags file # usually type keywords and library type names
word2=0x991111;;true;false word2=0x991111;;true;false
string=0xff901e string=0xff901e
preprocessor=0x007f7f preprocessor=0x007f7f
operator=0x301010 operator=0x301010
# unterminated string # unterminated string
stringeol=0x000000;0xe0c0e0;false;false stringeol=0x000000;0xe0c0e0;false;false
# user type names
type=0x0000d0;;true;false type=0x0000d0;;true;false
# user function names
function=0x000080

View File

@ -1,22 +1,23 @@
# For complete documentation of this file, please see Geany's main documentation # For complete documentation of this file, please see Geany's main documentation
[styling] [styling]
# foreground;background;bold;italic # foreground;background;bold;italic
default=0x000000;0xffffff;false;false default=default
commentline=0x808080;0xffffff;false;false commentline=comment
number=0x400080;0xffffff;false;false number=number
string=0x008000;0xffffff;false;false string=string
character=0x008000;0xffffff;false;false character=string
word=0x600080;0xffffff;true;false word=word
triple=0x008020;0xffffff;false;false triple=string
tripledouble=0x404000;0xffffff;false;false tripledouble=commentdoc
classname=0x003030;0xffffff;false;false classname=type,bold
defname=0x000080;0xffffff;false;false defname=function
operator=0x300080;0xffffff;false;false operator=operator
identifier=0x000000;0xffffff;false;false identifier=default
commentblock=0x808080;0xffffff;false;false commentblock=comment
stringeol=0x000000;0xe0c0e0;false;false stringeol=stringeol
word2=0x9f0200;0xffffff;false;false # flip bold for identifiers
decorator=0x808000;0xffffff;false;false word2=word2,bold
decorator=preprocessor
[keywords] [keywords]
# all items must be in one line # all items must be in one line