[Padre-dev] Padre::Document
Gabor Szabo
szabgab at gmail.com
Fri Sep 5 13:17:30 PDT 2008
AFAIK we don't yet use Padre::Document.
I was just thinking about sg like that in order to abstract away the
file types.
Each open document can have multiple windows.
Each open document should have a newline_type and
a type that is Perl or XML or Javascript.
(The type can be set automatically based on extension but theres
should be a way to change
it for a specific file)
The type will define what is the syntax highlighting but also it will implement
all kind of language specific functions such as
- the fetching of subroutine names
- the way comment-out block works
- the context sensitive help
- the context sensitive auto completion
...
We might even split the Perl type into subtypes such as Perl script,
Perl module, Perl test file
all being subclass of a Perl type so we will be able to do specific
things for each file type.
So
1) what do you think
2) Will you connect Padre::Document to the real document or shall I do it
or shall I wait for some more code from you?
Gabor
More information about the Padre-dev
mailing list