Scintilla / Scite tabs formatting mystery.

Dale Strickland-Clark dale at riverhall.NOTHANKS.co.uk
Sat Jan 11 11:42:51 EST 2003


I've had quite a good hunt around now trying to understand this and
I've failed.

I've toyed with switching to Scite from PythonWin as my primary Python
editor because I like the way it does a few things - like the tabbar. 

However, in spite of setting all style fonts to mono-spaced I can't
get a tab to occupy the same width as 4 spaces. This means that text
that lines up nicely in Scite is all to cock in other editors.

I think I've set the tabs up right:
# Indentation
tabsize=4
indent.size=4
use.tabs=1

So that leaves the styles.

This is the relevant extract from the Python.properties file:

# Python styles - this doesn't do anything, as far as I can see.
style.python.*=fore:#000000,$(font.monospace)
# White space
style.python.0=fore:#808080,$(font.monospace)
# Comment
style.python.1=fore:#F000F0,$(font.monospace)
# Number
style.python.2=fore:#007F7F,$(font.monospace)
# String
style.python.3=fore:#00A070,$(font.monospace)
# Single quoted string
style.python.4=fore:#A07000,$(font.monospace)
# Keyword
style.python.5=fore:#00007F,bold,$(font.monospace)
# Triple quotes
style.python.6=fore:#007F00,$(font.monospace)
# Triple double quotes
style.python.7=fore:#007F00,$(font.monospace)
# Class name definition
style.python.8=fore:#0000FF,bold,$(font.monospace)
# Function or method name definition
style.python.9=fore:#007F7F,bold,$(font.monospace)
# Operators
style.python.10=fore:#FF0000,bold,$(font.monospace)
# Identifiers
style.python.11=fore:#00007F,$(font.monospace)
# Comment-blocks
style.python.12=fore:#909090,$(font.monospace)
# End of line where string is not closed
style.python.13=fore:#000000,$(font.monospace),back:#E0C0E0,eolfilled
# Matched Operators
style.python.34=fore:#0000FF,bold,$(font.monospace)
style.python.35=fore:#FF0000,bold,$(font.monospace)
# Braces are only matched in operator style
braces.python.style=10

What have I got wrong? 

Any pointers appreciated.


--
Dale Strickland-Clark
Riverhall Systems Ltd




More information about the Python-list mailing list