Hey Joe,

Scintilla has no support for this -- youll need to parse the JS 'files' (
Antlr I believe has a language file ) -- monitor on OnCharAdded -- search
the syntax tree -- and offer completions with AUTOCSHOW .

I too would really like a good javascript editor , hope you can finish one!

Charlie


----- Original Message -----
From: "joe robe" <[EMAIL PROTECTED]>
To: "Discussion of the Scintilla editing component"
<[email protected]>
Sent: Sunday, August 28, 2005 10:21 AM
Subject: RE: [scintilla] Auto completion of javascript


> Dan,
>
> thanks for your answer. So assume I have this
> information, how do I add it as "rules" to Scintilla
> for auto completion ?  I created my own JScript
> framewokr and parsing this and create f.e. an XML file
> of all objects and their methods would be easy. Is
> there a simple way to just tell Scintilla  such a file
> and it would than autocomplete ?
>
> You mentioned you wrote a jscript editor, what can it
> do more than the standard editor ?
>
> Joe
>
> --- Dan Petitt <[EMAIL PROTECTED]> wrote:
>
> > To do this, you would need to parse the file so that
> > you can determine what
> > variable is which object and therefore has which
> > methods/properties.
> >
> > This isnt the role of Scintilla, it's the editor's
> > job.
> >
> > If you find a way of doing it easily, let me know as
> > I want it for a Jscript
> > editor I have written ... I havent got around to
> > parsing it all yet.
> >
> >
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On
> > Behalf Of joe robe
> > Sent: 28 August 2005 15:04
> > To: [email protected]
> > Subject: [scintilla] Auto completion of javascript
> >
> > Hi,
> >
> > Its really interesting, but there seems to be
> > ABSOLUTELY NO jscript editor
> > which has features like the good VS.net for c#, C++
> > etc !
> >
> > I found scintilla, and at least we have folding
> > thats a GREAT releive,
> > thanks to the authors !
> >
> > I dont see auto completion, is there anything I have
> > to switch on for this ?
> >
> > Also, more important, is there a way to add my own
> > jscript objects and
> > methods to get auto completion for them? Its still a
> > total pain to code in
> > jscript as one always has to look up available
> > objects and their properties
> > !
> >
> > Thanks for any help on this
> >
> > Joe
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> > protection around
> > http://mail.yahoo.com
> > _______________________________________________
> > Scintilla-interest mailing list
> > [email protected]
> >
> http://mailman.lyra.org/mailman/listinfo/scintilla-interest
> >
> >
> > _______________________________________________
> > Scintilla-interest mailing list
> > [email protected]
> >
> http://mailman.lyra.org/mailman/listinfo/scintilla-interest
> >
>
>
>
>
> ____________________________________________________
> Start your day with Yahoo! - make it your home page
> http://www.yahoo.com/r/hs
>
> _______________________________________________
> Scintilla-interest mailing list
> [email protected]
> http://mailman.lyra.org/mailman/listinfo/scintilla-interest
>

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to