Scite Integration
Farben

Entscheidend für das richtige "Feeling" einer Programmierumgebung ist ohne Zweifel ein angenehmes Farbschema. In Scite wird es einem extrem leicht gemacht, die Farben zu konfigurieren - man muss dazu nur andere Farbcodes in die Konfigurationsdatei eintragen. Dort kann man auch mehrere Schemata nebeneinander verwalten, wobei man die jeweils ungewünschte mit '#' am Zeilenanfang auskommentiert. Die entsprechende Datei ist die "python.properties" im Programmverzeichnis. Sie lässt sich normalerweise über "Options=>Open python.properties" öffnen. (Siehe Scite Integration/Konfigurieren). Hier zwei Beispiele von mir. Den Code kann einfach in die Datei reinkopiert werden, wobei natürlich bereits existierende Farbeinstellungen auskommentiert werden sollen. Bitte verzeiht mir, dass ich nicht alle meine Kommentare im Code aus dem gewohnheitsmäßigen Englisch übersetzt habe.

Allgemeine Tipps

In der Konfigurationsdatei lassen sich Variablen definieren und wieder verwenden. Genauso lass en sich auch Variablen verwenden, die an anderer Stelle (auch global) bereits definiert sind:

# Definieren und benutzen:
foo=textDenIchMehrmalsBrauche
use=irgendwas,$(foo),nochwasAnderes
use2=nochwas,$(foo)

# Beispiele für vorhandene Variablen:
# $(font.monospace)
# $(font.comment)
# $(font.base)

In den styles lassen sich folgende Felder belegen:

font, size, 
fore, back, 
italics, notitalics, bold, notbold, underlined, notunderlined,
eolfilled, noteolfilled,  
case
#  The font field has a subvalues: name of the font, for Example: Courier New
#  The Size field has a numeric size subvalue,
#  The case field has a subvalue of 'm', 'u', or 'l'
#  The fore and back field are RGB colors with hexadecimal values. For example
#    #0088FF means: 0% red, 50% green and 100% blue

Mein Tipp zum auskommentieren von größeren Blöcken: Falls in eurer Scite-Version die "properties"-Dateien nicht als eigene Sprache erkannt werden, kann muss man trotzdem nicht jede Zeile einzeln auskommentieren. Einfach Language/Python auswählen und schon kann man mit den Python-Kommentaren via Strg-Q arbeiten.

Grau / Orange

Hier ein Schema mit etwas herbstlichen Farben. Dazu passt übrigens die Formatierung des Outputfensters (siehe unten).

   1 ###############################################################################
   2 #                          COLOR SCHEME - Grey / Orange
   3 ###############################################################################
   4 
   5 # Default
   6 style.python.32=$(font.monospace),back:#eeeeee,size:10
   7 # Line number
   8 style.python.33=fore:#FF8000,back:#444444
   9 # White space
  10 style.python.0=fore:#808080
  11 # Indentation Guides
  12 style.python.37=fore:#808080
  13 # Comment
  14 _commentfont=,font:Courier
  15 style.python.1=fore:#008000$(_commentfont)
  16 # Comment-blocks
  17 style.python.12=fore:#008000$(_commentfont)
  18 # String
  19 style.python.3=fore:#808080
  20 # Single quoted string
  21 style.python.4=fore:#808080
  22 # Triple quotes
  23 style.python.6=fore:#FF8000
  24 # Triple double quotes
  25 style.python.7=fore:#FF8000
  26 # Number
  27 style.python.2=fore:#FF0000
  28 # Keyword
  29 style.python.5=fore:#0000FF,bold
  30 # Operators
  31 style.python.10=fore:#000080,bold
  32 # Decorators
  33 style.python.15=fore:#805000
  34 # Identifiers
  35 style.python.11=fore:#000000
  36 # Highlighted identifiers
  37 style.python.14=fore:#407090
  38 # Class name definition
  39 style.python.8=fore:#000000,underlined,bold
  40 # Function or method name definition
  41 style.python.9=fore:#000000,bold
  42 # End of line where string is not closed
  43 style.python.13=fore:#000000,back:#FFFF00,eolfilled
  44 # Bracematching
  45 braces.check=1
  46 # Bracematching even after cursor
  47 braces.sloppy=1
  48 # Matched Braces
  49 style.python.34=fore:#0000FF,bold
  50 # Non-matched Braces on Cursor
  51 style.python.35=fore:#FF0000,bold
  52 # Braces are only matched in operator style
  53 braces.python.style=10

Blau in Blau

Dieser Stil ist für die Stunden, in denen man zur Augenentspannung mal einen dunkleren Hintergrund möchte.

   1 ###############################################################################
   2 #                          COLOR SCHEME - BLUE
   3 ###############################################################################
   4 
   5 # Python styles
   6 caret.fore=#CC3300
   7 caret.width=3
   8 
   9 # Default
  10 style.python.32=fore:#99CCFF,back:#000066
  11 # Keyword
  12 style.python.5=fore:#47D1FF,bold
  13 # Line number
  14 style.python.33=fore:#CC9900,back:#000066
  15 # White space
  16 style.python.0=fore:#808080
  17 # Comment
  18 style.python.1=fore:#CC3300,$(font.comment)
  19 # Number
  20 style.python.2=fore:#8F8F8F
  21 # String
  22 style.python.3=fore:#8F8F8F,$(font.monospace)
  23 # Single quoted string
  24 style.python.4=fore:#8F8F8F,$(font.monospace)
  25 # Triple quotes
  26 style.python.6=fore:#CC9900
  27 # Triple double quotes
  28 style.python.7=fore:#CC9900
  29 # Comment-blocks
  30 style.python.12=fore:#CC9900
  31 # Class name definition
  32 style.python.8=fore:#33CC00,bold
  33 # Function or method name definition
  34 style.python.9=fore:#33CC00,bold
  35 # Operators
  36 style.python.10=bold
  37 # Identifiers
  38 style.python.11=
  39 # End of line where string is not closed
  40 style.python.13=fore:#000000,$(font.monospace),back:#E0C0E0,eolfilled
  41 # Highlighted identifiers
  42 style.python.14=fore:#407090
  43 # Decorators
  44 style.python.15=fore:#47D1FF,bold
  45 # Matched Operators
  46 style.python.34=fore:#FAFA00,bold
  47 # Non-Matched Operators
  48 style.python.35=fore:#FF0000,bold
  49 # Braces are only matched in operator style
  50 braces.python.style=10
  51 # Indentation Guides
  52 style.python.37=fore:#CC9900,back:#CC9900

Ausgabefenster

Auch die Ausgabe lässt sich formatieren. Leider aber nur unabhängig von der eingestellten Sprache. Hier ist das Schema, was ich mir passend zum Grey/Orange-Stil gebastelt habe. Es wird Vielen zu wenig Kontrast sein, aber man sieht ja, wie es funktioniert. Allerdings basiert es nur auf Austesten, welche Stilnummer welchen String "matched". Probiert es einfach:

   1 ###############################################################################
   2 #                          COLOR SCHEME - Output window
   3 ###############################################################################
   4 
   5 # Output window
   6 # Default
   7 style.errorlist.32=back:#444444,size:10,fore:#aaaaaa
   8 # Normal output
   9 style.errorlist.0=fore:#aaaaaa
  10 # Matching "line"?
  11 style.errorlist.1=fore:#FF8000,$(font.comment)
  12 # Line contending a path
  13 style.errorlist.2=fore:#008000,$(font.monospace)
  14 # Command prompt
  15 style.errorlist.4=fore:#FF0000
  16 # Matching --- abc ---
  17 style.errorlist.13=fore:#aa0000
  18 # Matching ----------
  19 style.errorlist.12=fore:#aa0000

Scite Integration/Farben (last edited 2009-06-17 16:14:13 by localhost)