Aztech Guy | 3 Oct 2002 17:24
Picon
Favicon

Re: Using Scite as a text outliner

I tried your suggestion, and it works. Thanks a lot.

 Neil Hodgson wrote:

Aztech:
> Actually, I guess I didn't specify my question too clearly:
> What I had in mind was to use one additional tab character

You could try treating the document as Python using the Language menu.
Then assign all the Python styles to be the same.

Neil


_______________________________________________
Scite-interest mailing list
Scite-interest <at> lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest


Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
Ralf Wagner | 4 Oct 2002 00:27
Picon

Re: 'Sort selected lines' feature?

Valery Kondakoff :

> I really miss 'Sort selected lines' functionality in current SciTE
> implementation.

If you are using Scite on Windows, you can implement 
'Sort selected lines' feature with following FilerX macro:

// - start
Macro void SortSelLines
 int numOfLines;
 int i;
 string sOut = "";
 string lines[GetLineCount()];
 int selstart = GetSelectionStart;
 int selend = GetSelectionEnd;
 int linestart = LineFromPosition(selstart);
 int lineend = LineFromPosition(selend);
 string sTemp;
 int iPos;
// do not count line if selection ends in first col
 if (selend == PositionFromLine(lineend)) {
  lineend--;
 }
 if (selstart == selend ||  linestart == lineend) {
  return;
 }
 numOfLines = lineend - linestart + 1;
 for ( i = linestart; i<=lineend; i++) {
  sTemp = GetLine(i);
  iPos = instr(sTemp, "\n");
  if (iPos >= 0) {
   sTemp = left(sTemp, iPos);
  }
  lines[i-linestart] = sTemp;
 }
 sortstrings(lines, 0, numOfLines - 1);
 for ( i = 0; i<numOfLines; i++) {
  sOut = sOut & lines[i];
 }
 ReplaceSel(sOut);

//- end

BTW: Does anybody know why 'GetLine' function returns 
not only line content, but also some text (after '\n') appended?

Regards,
Ralf Wagner
wagner <at> 2a.pl
Neil Hodgson | 4 Oct 2002 12:52
Picon

Re: Messed up message

   Hi Philippe,

> I received a message, seemingly from you, with subject starting as: "Re:
> [scintilla] Re: Re: [ scinti" (the webmail I have to use truncate sujects
to fit
> them in the Web page). It seems to have an attached file, the message
being
> 69KB.

   As best I can tell this is a virus/worm with a forged return address.
Some 'recipients' sent me a notice that I am infected with W32/Bugbear.A <at> mm
but I just did a scan with a recent (Oct 2) Symantec tool specific to this
virus with no hits. A generic virus scan found nothing active.

   My advice is to never open attachments, even from me, if they have no
apparent reason to exist.

   It is best to never send attachments to the list. If you want to publish
some code or an image put it on a web server and publish the address. If you
want me to see some code send it only to me (nhodgson <at> bigpond.net.au) rather
than to the list.

> Return-Path: <nhodgson <at> bigpond.net.au>
> X-Flags: 0000
> Delivered-To: GMX delivery to philho <at> gmx.net
> Received: (qmail 29508 invoked by uid 0); 4 Oct 2002 07:35:20 -0000
> Received: from fegkx2.vip.hr (HELO fepkx2.vip.hr) (212.91.98.72)
>   by mx0.gmx.net (mx016-rz3) with SMTP; 4 Oct 2002 07:35:20 -0000
> Received: from gogsica-y4482qd ([212.91.103.72]) by fepkx2.vip.hr with
SMTP
>           id <20021004073456.GIQN10068.fepkx2 <at> gogsica-y4482qd>;
>           Fri, 4 Oct 2002 09:34:56 +0200

   "gogsica" was on the virus report which came (purportedly) from a
net4u.hr address. The address chain does not reveal either a bigpond server
(my normal ISP) or scintilla.org or lyra.org (the host of the Scintilla
mailing lists). Therefore (along with the clean report), I don't think this
was generated by my machine but rather from the host that was complaining
about the virus and that possibly one of the forms of the virus is to appear
in reports about itself like Klez offers Klez removal tools. It looks to me
as though the virus read one of the messages in the "Scrolling long lines"
thread and was sent itself to every address in the message. David Ascher
should receive a virus in that case.

   The Scintilla mailing lists will not automatically forward messages >
40K, so any message hosting this virus will be reported to me.

   Your email which contained parts of the virus triggered further virus
reports because they contained the text of the iframe exploit.

   I have disabled mail to one net4u.hr account mentioned in one of the
virus notices.

   Neil
Neil Hodgson | 4 Oct 2002 13:33
Picon

Re: 'Sort selected lines' feature?

Ralf:

> BTW: Does anybody know why 'GetLine' function returns
> not only line content, but also some text (after '\n') appended?

   Historical compatibility with Microsoft's edit control. Avoid GetLine.
The documentation says:
## All retrieved strings except for those retrieved
## by GetLine also have a NUL appended

   Neil
Garrett Serack | 4 Oct 2002 15:10

SciteNET/ScintillaNET


Howdy!

I'm about to begin to update the Scintilla.NET and Scite.NET extensions
that I was working on a few months ago.

I'm sorry if anyone needed this stuff, but I got dragged down in one
heckuva lot of work at the day job. :(

In any event, I've resync'd my code to the latest CVS builds, and I'm
starting to make some changes to allow CLS-compliant languages to
actually use it. (ie:VB.NET)

If anyone has anything that they need fixed, give a shout ;)

Oh, and I've got a VB.NET sample on the way too!

(is anyone actually using this besides me?)

Garrett.
Laurent LE TYNEVEZ | 6 Oct 2002 18:14
Picon

SciTE & Filerx

Hi, everybody,

I uploaded last Filerx version today; you can get it at
http://llt.chez.tiscali.fr/

One small but important change for people having a command line in
SciTEGlobal.properties.
Instead of :
command.0.*="C:\ ........\filerx.exe" "$(WindowID)"
Write now :
command.0.*="C:\ ........\filerx.exe" "id:$(WindowID)"
Apply the same change for MiniFilx command, too.

Other changes are internal : removed useless features, rewrote and
reorganized a lot of things,
removed old bugs, added new ones...

Hoping it will be useful.

Laurent
Neil Hodgson | 8 Oct 2002 09:04
Picon

Fortran support

   Chuan-jian Shen has contributed a Fortran lexer to Scintilla and
appropriate setup for SciTE. There are two modes, one for old fixed format
Fortran (.f or .for) and a second for free format Fortran (.f90, .f95).

   Available from CVS and
http://www.scintilla.org/scite.zip Source
http://www.scintilla.org/wscite.zip Windows executable

   Neil
Chuan-Jian Shen | 8 Oct 2002 09:45
Picon

RE: Lexer for Fortran


Hi Neil,

The code looks good for me. Maybe you can add one line in
SciTEGlobal.propertis as the following:

source.files=*.asm;*.c;*.cc;*.cpp;*.cxx;*.cs;*.h;*.hh;*.hxx;*.hpp;\
*.idl;*.odl;*.rc;*.rc2;*.dlg;*.def;\
*.vb;*.vbs;*.bas;*.frm;*.cls;*.ctl;\
*.java;*.js;*.py;*.pl;*.rb;*.cgi;*.lua;*.conf;\
make*;*.mak;\ <----------- add "Make*;" for "Makefile"
*.f;*.for;*f90;*.f95;\	<------------------- add this line
*.properties;*.html;*.xml;*.iface;*.bat;*.e

Changing the keywords into uppercase without changing the real file is
not what I want but it is better then without it.

Thanks, Shen

-----Original Message-----
From: Neil Hodgson [mailto:nhodgson <at> bigpond.net.au] 
Sent: 08 October, 2002 09:03
To: C.Shen <at> phys.rug.nl
Subject: Re: Lexer for Fortran

   Hi Shen,

> As I said several days ago about the FORTRAN lexer, I worked it out
last
> weekend. The lexer compiled successful using MinGW 2.0 and seems to
> work. I did not program a lot using C++, but I did with python and
> FORTRAN. Here I send in the lexer in the attachment without cc-ing to
> the list to avoid the attachment problem for the list.

   Thanks. It is now integrated into Scintilla. I removed two variables
(chPrevNonWhite and visibleChars) from the lexer as they were unused and
so
caused warnings from Borland C++. The code is available in
http://www.scintilla.org/scite.zip .

> By the way, is it possible to change the keywords to uppercase
> automatically?

   It is possible to make the keywords appear in uppercase automatically
but
this does not change the way they are saved:
style.fortran.8=$(colour.keyword),case:u
style.f77.8=$(colour.keyword),case:u

   Neil
karl | 8 Oct 2002 18:00
Picon
Favicon

Printing Question

Greets
Is there a way i can tell Scite
not to print my background color?
Thank you
Karl Anderson
 
Ryan Christianson | 8 Oct 2002 23:38

scite keyboard shortcut

Is there a way to change keyboard shortcuts in scite?

I'd like to change redo, I prefer to use "control-shift-z" while scite 
uses "control-y".

Control -Y is harder to press with one hand :)

Thanks.

Gmane