> On Tue, 13 Jan 2004 19:24:01 -0800
> Ken Hayber <khayber@...> wrote:
>
>>> Nice! When will we see syntax highlighting
>>
>> Well, until/unless more work is done on pygtksourceview, a long time.
>>
>> :-(
>> I tried it with what is currently available, but no go.
>
> Well, I know nothing about GTK or Python... But couldn't you just make
> some simple ~/Choices/Edit/Syntax/ dir with files named after
> mime-type.
> And those files contains entries in the form regexp,color. Or is it
> hard
> to change color of text in the textwidget that is used in Edit?
I am sure that it is harder than that and that performance is also a
big issue. You don't want to be scanning through your text in python
doing regexes and setting gtk text view colors. gtksourceview already
has all this - we just need a nice python wrapper for it. One has been
started, but it not up to date with gtksourceview now.
>
>>> , adjustable tab-size,
>>> auto-indent, etc...? =)
>>
>> I may tackle one or both of these someday. Don't hold you breath :-)
>
> ..and it would be nice if the wrap could be set to
> {off,display-only,real}, where realwrap actually wraps the text
> (inserts
> linebreaks). And a format-paragraph action that reformats current
> paragraph...
How does 'real' handle window width changes? Currently all I did was
add a control to set a gtk text view setting. Its not like I wrote a
whole bunch of code for this. Your 'real' word wrap is a whole 'nuther
thing that would need a decent spec before starting it. Actually I
think you'd probably want a menu command to 'reformat' the current text
to the current window wouldn't you? I use TextPad in Windows and use
that function sometimes. I wouldn't think you'd want it on all the
time.
>
> /Jonatan - who's dream is that Edit will be like Midnight Commanders
> builtin editor someday... =)
Dreams are important :-)
|