On Fri, 07 Nov 2003 19:43:44 -0800, Srinath Avadhanula wrote:
Hello,
Sorry to be bringing up what seems to be a somewhat beaten up topic...
This is what I wanted to do:
Create a _simple_ text editor widget which supports VI(M) style
keybindings but works with arbitrary fonts/unicode characters. Vi(m)
unfortunately, does not support Devanagari (or proportional fonts) and
it looks like it will take quite some time for these things to work. As
and when Vim supports Devanagari on Windows, I will give up this effort.
My current aims are:
1. Simple Vi(m) style keybindings.
2. Syntax highlighting for arbitrary files based on Vim-style syntax
highlighting definitions. Vim defines syntax highlighting for files
based on a very flexible regexp style approach. Thus you can define
syntax hightlighting for new file types just by writing some regexps.
3. Should be able to load/edit files written in unicode.
4. Macro capability.
5. I want to implement this purely in python.
6. Should work on windows.
7. I do not really care much about speed/looks etc as long as the thing is
functional.
Don't forget pygtk, bindings for GTK+. GTK+ has a very powerful
GtkTextView widget. There is also a GtkSourceView widget that has recently
been wrapped for python use. GTK+ supports custom keybindings throughout.
GTK+ works well on Windows. GTK+ on Windows XP uses the XP themeing
system, so GTK+ apps look native on Windows XP. The Windows classic
theme, although not perfect, works very similarly to native Windows
widgets.
If you use pygtk but would rather use the Scintilla widget you may be
interested in this:
http://sra.itc.it/people/cavada/PyScintilla2.html