Scintilla was Re: [Edu-sig] Python Briefing for Faculty

Markus Gritsch gritsch@iue.tuwien.ac.at
Sat, 12 May 2001 16:38:01 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0011_01C0DB01.E8ABD740
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

> Hi Markus
>
> Many thanks for the heads up on SciTE.
>
> Very interstin & yes I am impressed - it does feels smooth, clean and
fast.
> I like the Save As HTML/RTF/PDF
>
>
> How do you run python scripts?

by pressing F5 (look into the SciTE docs)

> How do you do the object.lookup tricks?

Well, since it is only an Editor (although a very good one), and not a
Python IDE, object.lookup is not possible.  I wrote "to some extend
possible", and that means, that calltips and autocompletion is possible.
For example when configured properly, typing

string.

will pop up a window with all the functions an classes in the stirng module.
Typing more e.g.

string.split(

will show the calltip of the function.  This information must be stored in
an .api file (as discribed in the SciTE docs), and I have written a little
script which generates such an .api file form the standart Python library:
stud4.tuwien.ac.at/~e9326522/gen_python_api.zip

> How do you navigate between multiple open files. There is no 'Window' menu
> to jump between open documents.

You must turn on multiple buffers.  Have a look into my attached
SciTEUser.properties file.

> I am probably just being lazy and nee to read the dosc adn study configs
for
> a while.

In deed.  But you can save some time by using parts of the attached file.
It changes also the colors to be more IDLE like.

> There has been a growing demand for a smart I toolkit for Zope. looks liek
> SciTE could be a very nice part of that, using wxPython/Boa. It's proabbly
> already in there..
>
> Have you any experience embeding and scripting SciTE in python apps?

No.  And once again: SciTE is the Text Editor. SciTE, T=text E=editor.
scintilla is the editor-component, and you definitely want to embed
scintilla into your application.  Please make this distinction.

Enjoy, Markus


------=_NextPart_000_0011_01C0DB01.E8ABD740
Content-Type: application/octet-stream;
	name="SciTEUser.properties"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="SciTEUser.properties"

# Glade Code Generator files=0A=
file.patterns.glade=3D*.glade=0A=
lexer.$(file.patterns.glade)=3Dxml=0A=
if PLAT_WIN=0A=
  command.build.*.glade=3Dpython d:\bin\glc.py $(FileNameExt) =
$(FileName).py=0A=
if PLAT_GTK=0A=
  command.build.*.glade=3Dglc.py $(FileNameExt) $(FileName).py=0A=
=0A=
# Qt Designer files=0A=
file.patterns.ui=3D*.ui=0A=
lexer.$(file.patterns.ui)=3Dxml=0A=
if PLAT_WIN=0A=
  command.build.*.ui=3Dpyuic.exe -o $(FileName).py -x $(FileNameExt)=0A=
if PLAT_GTK=0A=
  command.build.*.ui=3Dpyuic $(FileNameExt) $(FileName).py=0A=
=0A=
# Python files=0A=
if PLAT_WIN=0A=
  command.go.*.py=3Dpythonw -u $(FileNameExt) $(CurrentSelection)=0A=
  #command.go.*.py=3DD:\Python151\pythonw -u $(FileNameExt) =
$(CurrentSelection)=0A=
  command.go.subsystem.*.py=3D1=0A=
if PLAT_GTK=0A=
  command.go.*.py=3Dpython2 -u $(FileNameExt) $(CurrentSelection)=0A=
=0A=
cc=3Dg++ -pedantic -Os -fno-exceptions -fvtable-thunks -o $(FileName) =
$(FileNameExt)=0A=
command.build.*.c=3D$(cc)=0A=
command.build.*.cc=3D$(cc)=0A=
command.build.*.cpp=3D$(cc)=0A=
command.build.*.cxx=3D$(cc)=0A=
=0A=
buffers=3D10=0A=
tabbar.visible=3D1=0A=
tabbar.hide.one=3D1=0A=
tabbar.multiline=3D1=0A=
=0A=
if PLAT_WIN=0A=
  position.left=3D552=0A=
  #position.left=3D493=0A=
  position.top=3D0=0A=
  position.width=3D600=0A=
  #position.width=3D659=0A=
  position.height=3D700=0A=
if PLAT_GTK=0A=
  position.left=3D-1=0A=
  position.top=3D-1=0A=
  position.width=3D600=0A=
  #position.width=3D731=0A=
  position.height=3D700=0A=
=0A=
view.whitespace=3D1=0A=
view.indentation.whitespace=3D1=0A=
view.indentation.guides=3D1=0A=
highlight.indentation.guides=3D0=0A=
=0A=
eol.auto=3D1=0A=
statusbar.visible=3D1=0A=
statusbar.number=3D2
statusbar.size=3D1600
blank.margin.left=3D1
blank.margin.right=3D0=0A=
margin.width=3D0=0A=
caret.fore=3D#ff00ff=0A=
caret.line.back=3D#FFFED8=0A=
caret.period=3D0=0A=
caret.width=3D2=0A=
#selection.back=3D#FFE0E8=0A=
#selection.back=3D#c0c0a8=0A=
selection.fore=3D#ffffff=0A=
selection.back=3D#808070=0A=
=0A=
split.vertical=3D0=0A=
horizontal.scrollbar=3D0=0A=
#output.horizontal.scrollbar=3D0=0A=
clear.before.execute=3D1=0A=
edge.mode=3D2=0A=
edge.column=3D79=0A=
strip.trailing.spaces=3D1=0A=
default.file.ext=3D.py=0A=
=0A=
style.*.34=3Dfore:#00aa00,bold=0A=
style.python.34=3Dfore:#00aa00,bold=0A=
=0A=
print.magnification=3D-2=0A=
print.colour.mode=3D4=0A=
=0A=
fold=3D1=0A=
fold.margin.width=3D0=0A=
fold.use.plus=3D1=0A=
#fold.on.open=3D1=0A=
#title.full.path=3D1=0A=
=0A=
tabsize=3D4=0A=
indent.size=3D4=0A=
use.tabs=3D0=0A=
=0A=
are.you.sure=3D0=0A=
are.you.sure.for.build=3D0=0A=
#load.on.activate=3D1=0A=
#save.on.deactivate=3D1=0A=
=0A=
if PLAT_WIN=0A=
  api.*.py=3Dd:\wscite\python.api=0A=
if PLAT_GTK=0A=
  api.*.py=3D/iuehome/gritsch2/gscite/python.api=0A=
calltip.python.word.characters=3D._$(chars.alpha)$(chars.numeric)=0A=
autocomplete.python.start.characters=3D.=0A=
#autocompleteword.automatic=3D1=0A=
word.characters.*.py=3D$(chars.alpha)$(chars.numeric)_=0A=
autocomplete.choose.single=3D1=0A=
=0A=
caret.policy.strict=3D0=0A=
caret.policy.slop=3D0=0A=
caret.policy.lines=3D0=0A=
=0A=
visible.policy.strict=3D1=0A=
visible.policy.slop=3D1=0A=
visible.policy.lines=3D5=0A=
=0A=
warning.findwrapped=3D0,C:\WINDOWS\MEDIA\Robotz Standard.wav=0A=
warning.wrongfile=3D0,C:\WINDOWS\MEDIA\Robotz Fehler.wav=0A=
#warning.executeok=3D0,C:\WINDOWS\MEDIA\DING.WAV=0A=
warning.executeko=3D0,C:\WINDOWS\MEDIA\Robotz Maximieren.wav=0A=
#warning.nootherbookmark=3D0,C:\WINDOWS\MEDIA\DING.WAV=0A=
=0A=
################################################################=0A=
=0A=
# Give symbolic names to the set of fonts used in the standard styles.=0A=
if PLAT_WIN=0A=
font.base=3Dfont:Verdana,size:10=0A=
=0A=
  font.small=3Dfont:Courier,size:9=0A=
  font.comment=3Dfont:Comic Sans MS,size:9=0A=
  font.text=3Dfont:Times New Roman,size:11=0A=
  font.monospace=3Dfont:Courier New,size:10=0A=
  font.vbs=3Dfont:Lucida Sans Unicode,size:10=0A=
=0A=
if PLAT_GTK=0A=
  font.base=3Dfont:Verdana,size:12=0A=
=0A=
  font.small=3Dfont:Courier New,size:12=0A=
  font.comment=3Dfont:Comic,size:11=0A=
  font.text=3Dfont:Times New Roman,size:13=0A=
  font.monospace=3Dfont:Courier New,size:12=0A=
  #font.monospace=3Dfont:Fixed,size:14=0A=
  #font.monospace=3Dfont:Fixed,size:12=0A=
  font.vbs=3Dfont:Lucida Sans Unicode,size:12=0A=
font.js=3D$(font.comment)=0A=
=0A=
=0A=
# Global default styles for all languages=0A=
=0A=
# Default=0A=
style.*.32=3Dback:#e0e0d0,$(font.base)=0A=
# Line number=0A=
style.*.33=3Dback:#c0c0a8=0A=
# Brace highlight=0A=
style.*.34=3Dfore:#00aa00,bold=0A=
# Brace incomplete highlight=0A=
style.*.35=3Dfore:#FF0000,bold=0A=
# Control characters=0A=
style.*.36=3D=0A=
# Indentation Guides=0A=
style.*.37=3Dfore:#808070=0A=
=0A=
################################################################=0A=
=0A=
# Python styles=0A=
=0A=
# White space=0A=
style.python.0=3Dfore:#808070=0A=
# Comment=0A=
style.python.1=3Dfore:#dd0000=0A=
#style.python.1=3Dfore:#dd0000,italics=0A=
# Number=0A=
style.python.2=3Dfore:#007f7f,bold=0A=
# String=0A=
style.python.3=3Dfore:#007f00=0A=
# Single quoted string=0A=
style.python.4=3Dfore:#007f00=0A=
# Keyword=0A=
style.python.5=3Dfore:#ff7700,bold=0A=
# Triple quotes=0A=
style.python.6=3Dfore:#00aa00=0A=
# Triple double quotes=0A=
style.python.7=3Dfore:#00aa00=0A=
# Class name definition=0A=
style.python.8=3Dfore:#0000ff,bold=0A=
# Function or method name definition=0A=
style.python.9=3Dfore:#7f00aa,bold=0A=
# Operators=0A=
style.python.10=3Dfore:#7f3f00,bold=0A=
# Identifiers=0A=
style.python.11=3D=0A=
# Comment-blocks=0A=
style.python.12=3Dfore:#7F7F7F=0A=
# End of line where string is not closed=0A=
style.python.13=3Dfore:#000000,font:Courier New,back:#E0C0E0,eolfilled=0A=
# Matched Operators=0A=
#style.python.34=3Ditalics=0A=
#style.python.35=3Ditalics=0A=
# Braces are only matched in operator style=0A=
braces.python.style=3D10=0A=
=0A=
#~ font.monospace=3Dfont:FixedSys,size:12
#~ font.base=3D$(font.monospace)
#~ font.small=3D$(font.monospace)
#~ font.comment=3D$(font.monospace)
#~ font.code.comment.box=3D$(font.monospace)
#~ font.code.comment.line=3D$(font.monospace)
#~ font.code.comment.doc=3D$(font.monospace)
#~ font.text=3D$(font.monospace)
#~ font.text.comment=3D$(font.monospace)
#~ font.embedded.base=3D$(font.monospace)
#~ font.embedded.comment=3D$(font.monospace)
#~ font.vbs=3D$(font.monospace)

------=_NextPart_000_0011_01C0DB01.E8ABD740--