Neil Hodgson | 1 Feb 2003 01:42
Picon

Re: Questions about indentation

   Hi Antti,

> Okay, assume that the cursor is before this ending brace here.
> Now I want to insert an empty line before that brace - and press
> <Enter>. What happens?  Well, SciTE indents like this:
>
> int f() {
>     // code still here
>
>     }
>     ^
>     +---- Cursor's here now...

   Yes, it indents the current line and thus the brace. It does this because
you are inside the brace, hence on indent level 1 and so may want to write
code there.

> Try it out!  It indents the ending brace.  (Yes, I'd like it to stay
> at the leftmost column.)

   The indentation of the brace is a side effect of indenting as is nomal
inside the braces, not because it sees the brace. The same happens if you
Enter before a ')' or any other code

> Is there any way of turning off this behavior?

   No. You'd have to add a special rule for this case and I'm not sure how
you would define your preferred behaviour.

> Hmm -- another eccentrity I just encountered is the following:
(Continue reading)

Neil Hodgson | 2 Feb 2003 05:32
Picon

Two phase drawing

   I have implemented an alternative drawing technique in Scintilla that
draws all the background colours before drawing the foreground text. This
avoids some text being cut off as described by Bruce Dodson on Windows XP
with ClearType on. The new two phase drawing technique causes more flashing
when drawn unbuffered and may be slower than the old one phase drawing.
Scintilla has a SCI_SETTWOPHASEDRAW API to set this mode (which is the
default) and SciTE has a two.phase.draw property.

   Here are some example images:
http://www.scintilla.org/OnePhase.png
http://www.scintilla.org/TwoPhase.png
   Note how the 0 final argument to setvbuf and CoInitialize are cut off as
is the f and ( in setvbuf.
   This also makes a difference on GTK+ although it is harder to provoke
overlapping characters. The standard X times font may and Microsoft's Times
New Roman (as used in the Windows examples) will.

   There is another problem on GTK+ where selecting chracters can cut off
other characters earlier. On GTK+ with the text:
if PLAT_GTK
   selecting the P can truncate the f, despite there being a character of
space between them. I suspect X does something unusual when drawing strings
with a final space (as does GDI+).

   This modification increases the complexity of the drawing code and there
is a good chance that it has bugs so please report them.

   Platform layers need to provide a new method DrawTextTransparent to
enable this feature.

(Continue reading)

Darren Schroeder | 2 Feb 2003 15:46

Fold Margin

Is there any way to change the color of the fold margin?

Darren
Bruce Dodson | 2 Feb 2003 19:33
Picon
Favicon

Re: monospace font display - minor glitches

It comes on for Lucida Console when I get to 14 point.  For Courier New, the
font is thinner, and anti-aliasing doesn't kick in until I get to 28 point.
That's with "Normal size" fonts (96dpi).

Bruce

----- Original Message -----
From: "Neil Hodgson" <nhodgson <at> bigpond.net.au>
To: <scite-interest <at> lyra.org>
Sent: Friday, January 31, 2003 5:22 PM
Subject: Re: [scite] monospace font display - minor glitches

> Bruce Dodson:
>
> > Incidentally, standard font smoothing does not happen in SciTE for me,
on
> > Windows 2000 or XP.  I do see font smoothing in the title bar, so I know
> it
> > is turned on.
>
>    Does it start smoothing if you zoom the text? Or make it bold? The
> Windows font smoother has some rules about when it applies smoothing and
> mostly that means no smoothing for small or thin characters.
>
>    Neil
>
> _______________________________________________
> Scite-interest mailing list
> Scite-interest <at> lyra.org
> http://mailman.lyra.org/mailman/listinfo/scite-interest
(Continue reading)

Bruce Dodson | 2 Feb 2003 20:46
Picon
Favicon

Re: Two phase drawing

Many thanks for this, Neil.  It does seem to have done the trick!

Bruce

----- Original Message -----
From: "Neil Hodgson" <nhodgson <at> bigpond.net.au>
Subject: [scite] Two phase drawing

> ... two.phase.draw ...
Darren Schroeder | 2 Feb 2003 21:29

Peoples cpp properties

Does everyone use the standard cpp.properties file?  I'd like to see other
peoples configurations, especially their colors.  Is there a repository of
many different properties some where?

To start it off - here's my cpp.properties (work in progress) - It has a
black background instead of the typical white.

Anyone have one that exactly matches MS Visual C++?

Darren
Attachment (cpp.properties): application/octet-stream, 10 KiB
Darren Schroeder | 2 Feb 2003 21:30

Copy As RTF

Anyone noticed that when you copy-as-rtf and paste it in, it uses the
"default" stylings?   Is that on purpose or is it a bug?  I'd kinda like it
to copy-n-paste exactly as it appears on my screen.

Darren
Grady Harris | 3 Feb 2003 01:37

Running Java 1.4

I hope this isn't a foolish question.

OS: Win 98
Java: j2sdk1.4.1

When I compile a .java file from SciTE, it goes smoothly, but when I try to 
run the app using "Go," I get the error:
"Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion' 
has value '1.4', but '1.2' is required"

I don't get this from java.exe from the command prompt, nor when I run it 
from, say, TextPad.

Does any one have a solution?

Grady Harris
Bruce Dodson | 3 Feb 2003 05:06
Picon
Favicon

Re: Copy As RTF

I had noticed that both Copy as RTF and Export as RTF didn't look right
(e.g. unexpected black background), but I didn't notice they were using the
default fonts too.  In terms of the black background, I figured it was just
an Office XP problem.

Export as HTML seems to give a faithful representantion, so I have been
using that.  (However there is currently no CF_HTML equivalent of Copy as
RTF.  I might eventually do something about that, but maybe someone will
beat me to it...)

----- Original Message -----
From: "Darren Schroeder" <fdncred <at> cablelynx.com>
To: <scite-interest <at> lyra.org>
Sent: Sunday, February 02, 2003 4:30 PM
Subject: [scite] Copy As RTF

> Anyone noticed that when you copy-as-rtf and paste it in, it uses the
> "default" stylings?   Is that on purpose or is it a bug?  I'd kinda like
it
> to copy-n-paste exactly as it appears on my screen.
>
> Darren
>
> _______________________________________________
> Scite-interest mailing list
> Scite-interest <at> lyra.org
> http://mailman.lyra.org/mailman/listinfo/scite-interest
>
Neil Hodgson | 3 Feb 2003 12:28
Picon

Re: Fold Margin

Darren Schroeder:
> Is there any way to change the color of the fold margin?

   On Windows it is copied from the scroll bar background colour which is
defined by the 3D Objects setting. You can change this in Display Properties
| Appearence | Item: 3D Objects.

   Neil

Gmane