Josiah Carlson | 1 Oct 2006 19:28
Picon
Favicon

Re: How to find keywords?


You can scan your source character by character, and discover the "state"
by GetStyleAt().  This is also in the documentation.

 - Josiah

"Steve Topov" <stopov <at> vive.net> wrote:
> The question still remains unanswered. After digging into Scintilla code I
> found that editor uses SetState function to set states for different words.
> So how can I find the word with the state lets say SCE_SQL_WORD?
> 
>  
> 
> -----Original Message-----
> From: scintilla-interest-bounces <at> lyra.org
> [mailto:scintilla-interest-bounces <at> lyra.org] On Behalf Of Steve Topov
> Sent: Monday, September 11, 2006 2:07 PM
> To: scintilla-interest <at> lyra.org
> Subject: [scintilla] How to find keywords?
> 
>  
> 
> This is third time I am trying to get the answer to this question. Well
> maybe I will get the answer this time.
> 
>  
> 
> I need to do a search for keywords. Lets say I defined the list of keywords
> using SCI_SETKEYWORDS. Now I need to find the first keyword, second and so
> on. I do not care what keyword it is as long as it is on the list. Is there
(Continue reading)

Armel Asselin | 2 Oct 2006 14:32
Picon

SC_START_ACTION notification patch

Hello all,

as promised here is a patch which adds the 'start action' notification flag 
(SC_START_ACTION).
This notification happens when a first action is added to a scintilla 
transaction. It allows to synchronize a container's stack easily by simply 
adding a ScintillaAction in container list of actions for the currently 
opened container transaction or to open such a transaction if not yet (when 
Scintilla is free to edit files).

There is no memory or speed impact.

Regards
Armel Asselin
Attachment (scintilla-start-action.patch): application/octet-stream, 5705 bytes
_______________________________________________
Scintilla-interest mailing list
Scintilla-interest <at> lyra.org
http://mailman.lyra.org/mailman/listinfo/scintilla-interest
Philippe Lhoste | 2 Oct 2006 15:46
Picon

Re: How to find keywords?

Steve Topov a écrit :
> The question still remains unanswered. After digging into Scintilla code 

You had two answers, but didn't said how or why they are not good.

--

-- 
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --
John Ehresman | 3 Oct 2006 02:53
Favicon

Re: How to find keywords?

Steve Topov wrote:
> The question still remains unanswered. After digging into Scintilla code I
> found that editor uses SetState function to set states for different words.
> So how can I find the word with the state lets say SCE_SQL_WORD?

I think you'd need to use StyleAt() on the document object to examine 
the state of each character and then write code to determine the extent 
of a word.  AFAIK, there is no higher level function to do this in the 
scintilla source base.  Are you really looking for the first word with a 
given state or do you think this will be an easy way to do something else?

Cheers,

John
SourceForge.net | 3 Oct 2006 10:15
Picon
Favicon

[ scintilla-Feature Requests-1569789 ] first action in transaction notification

Feature Requests item #1569789, was opened at 2006-10-03 10:15
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=352439&aid=1569789&group_id=2439

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Scintilla
Group: None
Status: Open
Priority: 5
Submitted By: Armel Asselin (aasselin)
Assigned to: Nobody/Anonymous (nobody)
Summary: first action in transaction notification

Initial Comment:
Hello all,

as promised here is a patch which adds the 'start 
action' notification flag 
(SC_START_ACTION).
This notification happens when a first action is 
added to a scintilla 
transaction. It allows to synchronize a container's 
stack easily by simply 
adding a ScintillaAction in container list of actions 
for the currently 
opened container transaction or to open such a 
transaction if not yet (when 
(Continue reading)

SourceForge.net | 3 Oct 2006 11:28
Picon
Favicon

[ scintilla-Feature Requests-1569837 ] FULL support of SIMPLE regular expressions

Feature Requests item #1569837, was opened at 2006-10-03 11:28
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=352439&aid=1569837&group_id=2439

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Scintilla
Group: None
Status: Open
Priority: 5
Submitted By: Maxx (maxxyme)
Assigned to: Nobody/Anonymous (nobody)
Summary: FULL support of SIMPLE regular expressions

Initial Comment:
Please support FULL Regular Expression!!! 

like here:
http://en.wikipedia.org/wiki/Regular_expression#Traditional_Unix_regular_expressions

 
i especially need the support of {x,y} expression which
is not supported in Scintilla (and therefore in
Notepad++) whereas it should be.

----------------------------------------------------------------------

You can respond by visiting: 
(Continue reading)

SourceForge.net | 3 Oct 2006 12:57
Picon
Favicon

[ scintilla-Feature Requests-1569883 ] JSP Lexer

Feature Requests item #1569883, was opened at 2006-10-03 03:57
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=352439&aid=1569883&group_id=2439

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: JSP Lexer

Initial Comment:
Now, the Scintilla build-in Html Lexer supporting ASP 
and PHP.
I need a JSP Lexer.

Or, is there any properties setting on the current 
Html Lexer could provide a jsp support(at least 
identify the JSP tags)?

Thank you very much

----------------------------------------------------------------------

You can respond by visiting: 
(Continue reading)

Armel Asselin | 3 Oct 2006 10:14
Picon

Re: Re: [ scintilla-Feature Requests-1554211]Notification when a new Undo action is available

I tried to send a mail with a patch but it seems that it did not go through

I try to put it through feature requests.

Armel

----- Original Message ----- 
From: "Enrico Tröger" <enrico.troeger <at> uvena.de>
To: <scintilla-interest <at> lyra.org>
Sent: Monday, September 25, 2006 3:20 PM
Subject: Re: [scintilla] Re: [ scintilla-Feature 
Requests-1554211]Notification when a new Undo action is available

> _______________________________________________
> Scintilla-interest mailing list
> Scintilla-interest <at> lyra.org
> http://mailman.lyra.org/mailman/listinfo/scintilla-interest
> 
Robert Roessler | 3 Oct 2006 21:05
Favicon

Re: External tools in the output pane of Scite

Andyman wrote:
> I would like to run an interpretor (ocaml or f#) in the output window.  This
> works easily enough by adding a "go" command in the options file.
> 
> To be really useful I would then like to be able to select text in the
> editor window then hit a hotkey to run that text in the interpretor.
> ...
> Thinking a bit about this it doesnt seem a totally trivial thing.  Is
> something like this possible?

You are correct - it isn't. ;)

Wanting something like this is why I wrote the OCaml lexer... when I 
then realized that it wouldn't get me where I wanted to go, I created 
a complete Scintilla binding for LablGTK.  Then I based a new OCaml 
toplevel GUI (all in OCaml) on that.

Generally, your toughest problem is that the OCaml toplevel itself is 
not implemented such that its output is easily parsed - it scatters 
its error and diagnostic messages across both stdout and stderr 
(sometimes the output for a single construct is split across both).

Robert Roessler
robertr <at> rftp.com
http://www.rftp.com
Enrico Tröger | 3 Oct 2006 22:55
Picon
Favicon
Gravatar

Re: SC_START_ACTION notification patch

On Mon, 2 Oct 2006 14:32:37 +0200, "Armel Asselin"
<asselin.armel <at> wanadoo.fr> wrote:

> Hello all,
> 
> as promised here is a patch which adds the 'start action'
> notification flag (SC_START_ACTION).
> This notification happens when a first action is added to a scintilla 
> transaction. It allows to synchronize a container's stack easily by
> simply adding a ScintillaAction in container list of actions for the
> currently opened container transaction or to open such a transaction
> if not yet (when Scintilla is free to edit files).

Thank you very much. I'm curious to test it.

Regards,
Enrico

--
Get my GPG key from http://www.uvena.de/pub.key

Gmane