Eyolf | 1 Aug 2005 16:58

Full regex support?

I've been trying to get Scite to do lazy matching - to make ".*" match only
"lorem" in 

"lorem" "ipsum"

In the reference manuals I've seen, ? should make a greedy search lazy, but this
does not seem to work in Scite (nor in Notepad++, but it does work in EditPad)
Is there another way of doing this?
Walter Rodrigo de Sá Cruz | 2 Aug 2005 17:38
Picon
Gravatar

command.go running a lua function?

How do I make a command.go to a certain kind of  file (like PHP) run a lua function ?
--
[]´s
- Walter
"A graça cria beleza a partir das coisas feias" (Bono Vox)

_______________________________________________
Scite-interest mailing list
Scite-interest <at> lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest
Walter Rodrigo de Sá Cruz | 2 Aug 2005 19:30
Picon
Gravatar

Using Lua variable in command.go - PHP files

Hi. I read an old thread about make a Lua script that runs a PHP

http://mailman.lyra.org/pipermail/scite-interest/2005-June/005822.html

I´m with a similar need.

function webserverphp()
    local f = props['FilePath']
    local s,e,path,file = string.find(f,'^(/var/www/)(.*)')
    if path == '/var/www/' then
        target = ("http://10.132.1.18/" .. file)
        firefox = ('mozilla-firefox ' .. target .. ' &')
        print("Opening  " .. target)
        --print(firefox)
        os.execute(firefox)
    else
        print("You must put your php files under /var/www/")
    end   
end

There's a way of call this script on command,go ?

How do I do that ?

--
[]´s
- Walter
"A graça cria beleza a partir das coisas feias" (Bono Vox)

_______________________________________________
Scite-interest mailing list
Scite-interest <at> lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest
Rafał Chłodnicki | 2 Aug 2005 19:45
Picon
Favicon

Re: Re: Middle-click bug?

On Tue, 02 Aug 2005 09:01:03 +0200, Neil Hodgson <nyamatongwe <at> gmail.com>  
wrote:
>    There is new code for handling file paths that could be at fault.If  
> you can come up with a more detailed report then it will be easierfor me  
> to debug after 1.65 is released.
>    Neil

Actually, all that is needed to reproduce it, is to:
1) Place SciTEUser.properties in USERPROFILE path with this content:
  import shortcuts
2) Create shortcuts.properties file in USERPROFILE with this:
  # set background color to green
  style.*.32=back:$00ff00

It does not work, background color stats white.

 From what filemonitoring app says, the file is looked up at  
$(SciteDefaultHome) only and not at USERPROFILE as it should (I think).
Rafał Chłodnicki | 2 Aug 2005 19:55
Picon
Favicon

Re: Re: Middle-click bug?

On Tue, 02 Aug 2005 08:58:56 +0200, Neil Hodgson <nyamatongwe <at> gmail.com>  
wrote:

>> There is no way I can make it work in 1.65 Jul 30 2005 20:36:42> Was  
>> there any changes made recently?
>    The only recent change was to stop treatment of a click outside  
> anytab as closing tab -1 which caused undefined
> behaviour. I am usingWindows XP SP2, you may need to run this in a  
> debugger to work outwhat is happening.

Yep, and this is a problem.
I've debuged it in OllyDbg (hardcore ;)) and this is what I've got:

part of the code from SciTEWin.cxx:
	int tab = Platform::SendScintilla(wTabBar.GetID(), TCM_HITTEST,  
(WPARAM)0, (LPARAM)&thti);
	if (tab >= 0) {
		CloseTab(tab);
	}

and this is what I've got in asm:
    0004052E  |hWnd = 4052E	// tab hwnd
    0000130D  |Message = MSG(130D)	// TCM_HITTEST
    00000000  |wParam = 0
    0012DB00  \lParam = 12DB00
|. FF15 30A34400  CALL DWORD PTR DS:[<&USER32.SendMessageA>; \SendMessageA
|. 85C0           TEST EAX,EAX		// eax here is ffffffff (-1)
|. 0F8C D5000000  JL SciTE.0041AB3A	// if(tab >= 0) fails here, we're  
jumping
|. 50             PUSH EAX                ; /Arg1
|. 8BC7           MOV EAX,EDI             ; |
|. E8 8320FFFF    CALL SciTE.0040CAF0     ; \SciTE.0040CAF0	//

When I manually changed to NOT jump, it worked, tab was closed.

It seems that calling SendScintilla with wTabBar.GetID() fails here, and  
it shouldn't. I suppose it checks if we actually hit tab. Why it fails  
here? I'm pointing tab while middle clicking, for sure :P
Neil Hodgson | 2 Aug 2005 10:09
Picon

SciTE 1.65 released

    SciTE 1.65 is now available from the scintilla.org web site.

    SciTE 1.65 is a minor enhancement and bug fix release. Middle 
clicking on a tab will close that file. Files may be automatically saved 
before a build command with the save.all.for.build setting. On Windows, 
there are command line arguments "-" (read standard input into buffer), 
"--" (read standard input into output pane) and "- <at> " (read file names 
from standard input and open each). An internal implementation of Find 
in Files is available for when there is no suitable external tool.

    A detailed list of changes is available on the history page.

    Thanks to the contributors of code and documentation and to the testers.

http://scintilla.sourceforge.net/SciTEDownload.html

    Neil
Marc Soleda | 3 Aug 2005 08:45
Picon
Picon
Favicon

hide control characters

Hi all, Shouldn't it work and hide control characters: SendMessage(SCI_STYLESETVISIBLE, STYLE_CONTROLCHAR, 0); I've tried but it doesn't seem to work. How can I hide Ctrl+Char and Ctrol+Shift+Char. Thanks, Marc Soleda.


Correo Yahoo!
Comprueba qué es nuevo, aquí
http://correo.yahoo.es
_______________________________________________
Scite-interest mailing list
Scite-interest <at> lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest
Howell, Andrew | 2 Aug 2005 10:27
Picon

RE: NO "Save modified files" question at app close?

Robert Roessler wrote:
> 
> No, I am not hallucinating... but it seems to be a *very* specific
> problem: take (or create) a file with 2 lines (i.e., one EOL
> sequence), data on the 1st line... select the 1st by holding shift and
> cursor down - Del key, and exit ("X", Alt-F4, File-menu-Exit, etc)...
> and you are out of SciTE with NO questions asked.

Reproduced on SciTE 1.64, WinXP SP2.

--

-- 
Andrew Howell

Please ignore disclaimer below added by ISP

_____________________________________________________________________
The contents of this email may be priviledged and are confidential. It may not be disclosed to or used by
anyone other than the addressee(s), nor copied in any way. If received in error, please advise the sender,
then delete it from your system.

This message has been checked for all known viruses by the MessageLabs Virus Control Centre.
Robert Roessler | 2 Aug 2005 10:14
Favicon

Re: NO "Save modified files" question at app close?

Neil Hodgson wrote:

> Robert Roessler:
> 
> 
>>With a build from current CVS (and with one from 3 days ago too), I
>>can modify a file and click the "X" button to close SciTE, and NO
>>question is asked - and the file is not silently saved.
>>
>>If it matters, my Global settings has the default "are.you.sure=1"
>>property setting.  This is on Windows XP SP2.
> 
> 
>    For me on Windows XP SP2, using current source, there is a "Save
> changes to?" You reported a related error on July 19 which was fixed.
> Attempt to reproduce (with a minimal user options file):
> 
> Start SciTE
> Options | Open User Options FIle
> Press space bar to add a space to first line
> Press close button [X]
> Save changes to? appears.

No, I am not hallucinating... but it seems to be a *very* specific 
problem: take (or create) a file with 2 lines (i.e., one EOL 
sequence), data on the 1st line... select the 1st by holding shift and 
cursor down - Del key, and exit ("X", Alt-F4, File-menu-Exit, etc)... 
and you are out of SciTE with NO questions asked.

I first saw this with my userContent.css file, and have since 
constructed a .txt to demonstrate the same thing.  And no, this does 
not happen if I do the test you suggest - it does not even happen with 
one of my "problem" files if I insert a space char - but take a 2-line 
file, do the selection I describe, Del, and SciTE *will* exit.

Robert Roessler
robertr <at> rftp.com
http://www.rftp.com
Howell, Andrew | 2 Aug 2005 10:39
Picon

RE: NO "Save modified files" question at app close?

Howell, Andrew wrote:
> Robert Roessler wrote:
>> 
>> No, I am not hallucinating... but it seems to be a *very* specific
>> problem: take (or create) a file with 2 lines (i.e., one EOL
>> sequence), data on the 1st line... select the 1st by holding shift
>> and cursor down - Del key, and exit ("X", Alt-F4, File-menu-Exit,
>> etc)... and you are out of SciTE with NO questions asked.
> 
> Reproduced on SciTE 1.64, WinXP SP2.

However, I can only make it not ask the question when I create the file with
2 lines, ie it was not saved anywhere.
Strictly speaking it is working OK:

With the created file, although an asterisk is in the tab to show me the
buffer has changed, the content is the same at time of exit as they were
before editing (ie completely empty.)

With a saved 2 line file, removing the first line and exiting throws the
confirmation dialogue.

--

-- 
Andrew Howell

Please ignore disclaimer below added by ISP

_____________________________________________________________________
The contents of this email may be priviledged and are confidential. It may not be disclosed to or used by
anyone other than the addressee(s), nor copied in any way. If received in error, please advise the sender,
then delete it from your system.

This message has been checked for all known viruses by the MessageLabs Virus Control Centre.

Gmane