1 May 2006 22:05
Re: Re: parsing file using lua
Frank Wunderlich <frankwu <at> gmx.de>
2006-05-01 20:05:52 GMT
2006-05-01 20:05:52 GMT
Roman Hubacek, 27.04.2006 08:44:
>> Roman Hubacek, 26.04.2006 17:23:
>>> function openPasFromDpr2()
>>> local path = props['FileDir'] --without trailing /\
>>> local file = editor:textrange(0, editor.Length)
>>> for uses in string.gfind(file, "uses.*;") do
>>> for c in string.gfind(uses, "\'([^\']*)\'") do
>>> scite.Open(path .. '\\' .. c)
>>> end
>>> end
>>> end
> Prevent changing buffer is AFAIK not possible. You can change back by
> scite.Open original file (props['FilePath']). When file is opened, it
> just does buffer change.
Hi Roman,
the script works perfect except files that be commented out...
is there a possibility to exclude values that have // before '..' or (*
and *) or { and } around '..'?
e.g. following files must not be opened:
...//...'Test.pas'...
...{...'Test.pas'...}...
...(*...'Test.pas'...*)...
Frank
I write this on my
Pentium II 300MHz, running Win98SE, but I have a color printer!
[...]
> Ideally, I'd like to be able to configure SciTE printouts with a
> different highlighting style from the appearance on the screen. Instead
> of colour variations, I'd use combinations of bold, underlined, and
> italics, and different font faces -- all in plain black print -- for
> printouts on my b&w printer.
Aaah, that's an old wish I have. I believe we should be able to
configure printing styles indenpendently of display styles, so we can
change the size (done with a global factor), the colors (back colors may
be unwanted on paper, as may be eolfilled), perhaps the fonts. And, like
you wrote, we may want to print in black & white, even on a color
printer (but also on a laser printer like I have at work), and thus play
more with fonts, italics/bold/underlined, etc.
RSS Feed