Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 22/06/2010, à 10:35

francoise_peace

[Résolu] Changer la couleur de fond de Geany ?

Bonjour, afin d'éditer des sites web j'aimerais que la couleur de fond de mon programme Geany soit: #D1C1ED

Le programme permet de tels changements, mais où mettre: #D1C1ED ?
Je n'ai pas un niveau aussi avancé dans les couleurs car je ne comprends pas les 0x, c'est toujours de l'hexadécimal ?

Tools > Configuration Files > filetypes.common (je suppose)

# For complete documentation of this file, please see Geany's main documentation
[styling]
# use foreground;background;bold;italic or named_style,bold,italic

# used for filetype All/None
default=default

# 3rd selection argument is true to override default foreground
# 4th selection argument is true to override default background
selection=0x000000;0xc0c0c0;false;false

# style for a matching brace
brace_good=0x0000ff;0xFFFFFF;true;false
# style for a non-matching brace (a brace without a counterpart)
brace_bad=0xff0000;0xFFFFFF;true;false

# the following settings define the colours of the margins on the left side
margin_linenumber=0x000000;0xd0d0d0;false;false
margin_folding=0x000000;0xdfdfdf;false;false

# background colour of the current line, only the second and third argument is interpreted
# use the third argument to enable or disable the highlighting of the current line (has to be true/false)
current_line=0x000000;0xf0f0f0;true;false

# translucency for the current line(first argument) and the selection (second argument)
# values between 0 and 256 are accepted. Note for Windows 95, 98 and ME users:
# keep this value at 256 to disable translucency otherwise Geany might crash
# only the first and second argument is interpreted
translucency=256;256;false;false

# style for a highlighted line (e.g when using Goto line or goto tag)
# only the first and second argument is interpreted
marker_line=0x000000;0xffff00;false;false

# style for a marked search results (when using "Mark" in Search dialogs)
# the second argument sets the background colour for the drawn rectangle
# only the second argument is interpreted
marker_search=0x000000;0x0000f0;false;false

# style for a marked line (e.g when using the "Toggle Marker" keybinding (Ctrl-M))
# only the first and second argument is interpreted
marker_mark=0x000000;0xb8f4b8;false;false

# translucency for the line marker(first argument) and the search marker (second argument)
# only the first and second argument is interpreted
marker_translucency=256;256;false;false

# colour of the caret(the blinking cursor), only first and third argument is interpreted
# set the third argument to true to change the caret into a block caret
caret=0x000000;0x000000;false;false

# width of the caret(the blinking cursor), only first argument is interpreted
# width in pixels, use 0 to make it invisible, maximum width is 3
caret_width=1;0;false;false

# set foreground and background colour of indentation guides
indent_guide=0xc0c0c0;;false;false

# third argument: if true, use this foreground color. If false, use the default value defined by the filetypes.
# fourth argument: if true, use this background color. If false, use the default value defined by the filetypes.
white_space=0xc0c0c0;0xffffff;true;false

# style of folding icons, only first and second arguments are used, valid values are:
# first argument:  1 for boxes, 2 for circles
# second argument: 1 for straight lines, 2 for curved lines
folding_style=1;1;false;false

# should an horizontal line be drawn at the line where text is folded (only first argument is interpreted)
# 0 to disable
# 1 to draw the line above folded text
# 2 to draw the line below folded text
folding_horiz_line=2;0;false;false

# only first and second argument is interpreted
# first argument: drawing of visual flags to indicate a line is wrapped. This is a bitmask of the
# values: 0 - No visual flags, 1 - Visual flag at end of subline of a wrapped line, 2 - Visual flag
# at begin of subline of a wrapped line, Subline is indented by at least 1 to make room for the flag.
# second argument: wether the visual flags to indicate a line is wrapped are drawn near the border
# or near the text. This is a bitmask of the values: 0 - Visual flags drawn near border,
# 1 - Visual flag at end of subline drawn near text, 2 - Visual flag at begin of subline drawn near text
line_wrap_visuals=3;0;false;false

# only first and second argument is interpreted
# first argument: sets the size of indentation of sublines for wrapped lines in terms of
# the width of a space, only used when the second argument is 0
# second argument: wrapped sublines can be indented to the position of their first subline or
# one more indent level, possible values:
# 0 - Wrapped sublines aligned to left of window plus amount set by the first argument
# 1 - Wrapped sublines are aligned to first subline indent (use the same indentation)
# 2 - Wrapped sublines are aligned to first subline indent plus one more level of indentation
line_wrap_indent=0;1;false;false

# only first and second argument is interpreted
# first argument: amount of space to be drawn above the line's baseline
# second argument: amount of space to be drawn below the line's baseline
line_height=0;0;false;false

[settings]
# which characters should be skipped when moving (or included when deleting) to word boundaries
# should always include space and tab (\s\t)
whitespace_chars=\s\t!\"#$%&'()*+,-./:;<=>?@[\\]^`{|}~

[named_styles]
# style names to use in filetypes.* [styling] sections
# use foreground;background;bold;italic
# normally background should be left blank to use the "default" style

default=0x000000;0xffffff;false;false
comment=0xd00000
commentdoc=0x3f5fbf
number=0x007f00
# keyword
word=0x00007f;;true;false
# e.g. global types from a *.c.tags file
word2=0x991111;;true;false
string=0xff901e
preprocessor=0x007f7f
operator=0x301010
# unterminated string
stringeol=0x000000;0xe0c0e0;false;false
type=0x0000d0;;true;false

Dernière modification par francoise_peace (Le 12/01/2011, à 14:14)

Hors ligne

#2 Le 22/06/2010, à 17:58

AnsuzPeorth

Re : [Résolu] Changer la couleur de fond de Geany ?

Bjr,
Il suffit d'ajouter 0x à ta couleur !
0xD1C1ED

Tu as jeter un oeil sur la doc ?
http://doc.ubuntu-fr.org/geany
Et sur le site de geany ?
http://www.geany.org/Download/Extras
Où tu trouveras un lien vers un éditeur online de coloration syntaxique pour geany.
http://geany.pdarko.co.cc/filetypes/

Je peux pas t'en dire plus, je n'utilise pas geany, car impossible d'avoir la coloratin que je veux (bug sur les mots supplémentaire à matcher, word2), donc je reste sous gEdit (qui, à part le dépliage de code, a tout les addons qui faut)


Interface graphique pour bash, python ou autre: glade2script
Support Tchat: http://chat.jabberfr.org/muckl_int/inde … ade2script  (Hors ligne)

Hors ligne

#3 Le 23/06/2010, à 19:30

francoise_peace

Re : [Résolu] Changer la couleur de fond de Geany ?

ça n'a pas marché:
# background colour of the current line, only the second and third argument is interpreted
# use the third argument to enable or disable the highlighting of the current line (has to be true/false)
current_line=0xD1C1ED;0xf0f0f0;true;false

-> rien

et: ~/Downloads/geany-darkTango$ sudo cp *  ~/.config/geany/filedefs/

-> rien

Hors ligne

#4 Le 12/01/2011, à 14:14

francoise_peace

Re : [Résolu] Changer la couleur de fond de Geany ?

Geany > Tools > Configuration Files > filetypes.common
Fenêtre de choix de couleur: suggestion de valeur de background #E7E7E7
"
[named_styles]
# style names to use in filetypes.* [styling] sections
# use foreground;background;bold;italic
# normally background should be left blank to use the "default" style

default=0x000000;0xffffff;false;false
comment=0xd00000
commentdoc=0x3f5fbf
number=0x007f00
"
-> le deuxième code hexadécimal c'est la couleur du fond

merci à: Tomzz

Tomzz a écrit :

À la fin du fichier /usr/share/geany/filetypes.common , modifier la ligne default=0x000000;0xffffff;false;false
le 0xffffff, enfin je crois bien, avec les couleurs html, je viens juste de regarder

Hors ligne

#5 Le 13/01/2011, à 18:15

Kookaburra

Re : [Résolu] Changer la couleur de fond de Geany ?

Petit complèment : il existe aussi des thèmes pour Geany

http://www.geany.org/Download/Extras#colors


Portable17p : CrunchBangLinux // EeePC : ArchLinux
Openbox Addict : http://kookadimi.deviantart.com
Mes photos : http://www.fluidr.com/photos/kookadimi/sets
Votre téléphone mobile dispose de plus de puissance que l'ensemble des ordinateurs de la NASA en 1969. La NASA a lancé un homme sur la Lune. Vous lancez un oiseau sur des cochons...

Hors ligne