Changing the default font in Scite

1,963 views
Skip to first unread message

bergamasque

unread,
Jan 18, 2009, 9:47:54 PM1/18/09
to scite-interest
Hi, I used to run Scite on a Windows XP system. Now that I have
installed it on a new machine with Vista, I'm inconvenienced by the
new font that is used to display text. How can I change the default
font to something more readable to me ?

bergamasque

unread,
Jan 21, 2009, 7:23:05 PM1/21/09
to scite-interest
Ok, so use of the monospace font can be turned off when opening the
Options menu but it doesn't stick after closing Scite. What must I do
to have monospace permanently disabled ? Please ? What file and line
must I edit ?

Neil Hodgson

unread,
Jan 21, 2009, 9:00:10 PM1/21/09
to scite-i...@googlegroups.com
bergamasque:

> Ok, so use of the monospace font can be turned off when opening the
> Options menu but it doesn't stick after closing Scite. What must I do
> to have monospace permanently disabled ? Please ? What file and line
> must I edit ?

Your symptoms don't make any sense to me. Possibly you are using a
different distribution of SciTE to the standard one from
scintilla.org.

Neil

bergamasque

unread,
Jan 21, 2009, 9:29:35 PM1/21/09
to scite-interest
I'm using version 1.57 that I downloaded from the official website.
Now Scite displays text in monospace by default which you have to
disable manually every single time you launch the program. It's
possible you're not using the latest update that changed that... I
used to be okay with the font that was used up until I installed this
latest version of Scite. If anyone knows how to disable monospace
permanently, I'd be grateful, thanks.

codex

unread,
Jan 21, 2009, 11:16:46 PM1/21/09
to scite-interest

Neil Hodgson

unread,
Jan 21, 2009, 11:53:33 PM1/21/09
to scite-i...@googlegroups.com
bergamasque:

> I'm using version 1.57 that I downloaded from the official website.

The current version is 1.77. scintilla.org links to other sites for
alternate packages such as installers. Looks like you followed the
link to GNUWin which hasn't been updated for some time. I will remove
the link.

Neil

bergamasque

unread,
Jan 22, 2009, 12:42:46 AM1/22/09
to scite-interest
I see. Could you give me the link to the non-default-monospace
installer for Vista, please ? Thaaanks!

Neil Hodgson

unread,
Jan 22, 2009, 12:56:44 AM1/22/09
to scite-i...@googlegroups.com
bergamasque:

> I see. Could you give me the link to the non-default-monospace
> installer for Vista, please ? Thaaanks!

I don't distribute installers for SciTE. Instead I distribute ZIP
files containing the software which have to be unzipped and placed
into the start menu etc. by hand. The current version, which does not
even allow setting monospace mode in the properties file is at
http://prdownloads.sourceforge.net/scintilla/wscite177.zip?download

Neil

Message has been deleted
Message has been deleted

bergamasque

unread,
Jan 22, 2009, 1:28:01 AM1/22/09
to scite-interest
Perfect, thanks! Except I can't seem to make it open all .txt files by
default in Vista's 'Programs by default' manager, maybe because I
stuck the folder by hand in 'programs' and so it won't aknowledge that
Scite is around, though it would be handy to have it open
all .txt, .css, .js, .php, ect, files by default...

KHMan

unread,
Jan 22, 2009, 4:25:13 AM1/22/09
to scite-i...@googlegroups.com

Old-timers on Windows often click-and-drag from Windows Explorer
into SciTE in order to open any file as text in SciTE. Sometimes,
other applications use extensions, such as *.eml for e-mail files,
but you don't want to override those default "open" settings.
Normally, I don't want to change most of the default settings, and
prefer to click-and-drag.

--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia

Philippe Lhoste

unread,
Jan 22, 2009, 9:12:21 AM1/22/09
to scite-i...@googlegroups.com

This can be done through the registry. At least that's how I do it, I never use system's
settings for that. And I don't know Vista's way...

You can set the preferences for each extension, or define the PerceivedType for them, and
set SciTE as default editor for this perceived type.

Extract of my SciTE.reg file:

Windows Registry Editor Version 5.00

; Register SciTE in the list of known applications.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\SciTE.exe]
"Path"="C:\\Program Files\\SciTE"
@="C:\\Program Files\\SciTE\\SciTE.exe"

; For the PerceivedType=text setting...
[HKEY_CLASSES_ROOT\SystemFileAssociations\text\shell\edit\command]
@="\"C:\\Program Files\\SciTE\\SciTE.exe\" \"%1\""

[HKEY_CLASSES_ROOT\SystemFileAssociations\text\shell\open\command]
@="\"C:\\Program Files\\SciTE\\SciTE.exe\" \"%1\""

; To put SciTE in the OpenWithList context menu item...
;~ [HKEY_CLASSES_ROOT\*\OpenWithList\SciTE.exe]

;~ [HKEY_CLASSES_ROOT\SystemFileAssociations\text\OpenWithList\SciTE.exe]

;~ [HKEY_CLASSES_ROOT\.htm\OpenWithList\SciTE.exe]

; Associate SciTE to any file.
; You can double-click on files without defined open or edit verb, they will open in SciTE
(actually no longer works in WinXP, but at least you have the entry in the context menu).
[HKEY_CLASSES_ROOT\*\shell\SciTE]
; English
@="Edit with &SciTE"
; French
@="Éditer avec &SciTE"

[HKEY_CLASSES_ROOT\*\shell\SciTE\command]
; Adjust the path, of course
@="\"C:\\Program Files\\SciTE\\SciTE.exe\" \"%1\""

[HKEY_CLASSES_ROOT\.properties]
@="propertiesfile"
"PerceivedType"="text"

[HKEY_CLASSES_ROOT\propertiesfile]
@="SciTE properties"

[HKEY_CLASSES_ROOT\propertiesfile\DefaultIcon]
@="C:\\Program Files\\SciTE\\SciTE.exe"

Change paths as needed. No guarantees, etc.

--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --

avisser

unread,
Jan 22, 2009, 11:53:33 AM1/22/09
to scite-interest
On windows, you should be able to use the "Open with" dialog, choosing
"browse for program" if needed and checking "always open with" or
however it's called

bergamasque

unread,
Jan 22, 2009, 12:58:14 PM1/22/09
to scite-interest
Avisser, that is *exactly* what I did, repeatedly (which normally
works on XP for me), and that is my problem, on this Vista machine,
after doing that, it still keeps opening the .txt files with Notepad
every time I double click one. As I used to use Scite to edit web
files (.html, .css, .js, .php...) it would be annoying to have to
right-click each of these files, click the browse button, select
"Scite.exe" and then open it every *single* time. I know I can open
Scite and then drag the files I want into it but meh... double-
clicking should work. It used to.

bergamasque

unread,
Jan 22, 2009, 1:09:17 PM1/22/09
to scite-interest
PS. And when I do the right-clicking thing and select Scite to be the
program to open it, the file still opens in Notepad then too. It seems
the only option right now is Opening Scite first and then dragging the
files into it... Meh, I wonder why it's doing that and how I can make
it work properly like I'm used to see it work.

KHMan

unread,
Jan 22, 2009, 1:16:52 PM1/22/09
to scite-i...@googlegroups.com

Looks like the real problem is that many of us are avoiding Vista
like plague :-) :-), and as such, I have no first-hand knowledge,
and Philippe's method is probably XP-tested as well. Any Vista
users who can share their best practices? :-)

bergamasque

unread,
Jan 22, 2009, 1:18:55 PM1/22/09
to scite-interest
Thank you, Philippe. I did a keyword search on the whole machine for
"scite.reg", it doesn't seem to be there...

KHMan

unread,
Jan 22, 2009, 1:28:46 PM1/22/09
to scite-i...@googlegroups.com
bergamasque wrote:
> Thank you, Philippe. I did a keyword search on the whole machine for
> "scite.reg", it doesn't seem to be there...

It's a text file you create, then right-click it and you get a
"Merge" option (on WinXP, :-) heh heh, hope it works for you...),
which merges the items to the registry. You can edit the registry
by hand also, but using a .reg file is easier.

> On Jan 22, 3:12 pm, Philippe Lhoste <Phi...@GMX.net> wrote:
>> On 22/01/2009 07:28, bergamasque wrote:

>> [snip]

bergamasque

unread,
Jan 22, 2009, 1:42:31 PM1/22/09
to scite-interest
So I create a file named 'scite.reg', paste the following in it:
And then save it ? Where ? :)

chunlei fan

unread,
Jan 22, 2009, 7:14:24 PM1/22/09
to scite-i...@googlegroups.com


2009/1/23 bergamasque <berga...@gmail.com>

Any where, and run it :)

KHMan

unread,
Jan 23, 2009, 7:03:48 AM1/23/09
to scite-i...@googlegroups.com
bergamasque wrote:
> So I create a file named 'scite.reg', paste the following in it:
>
> Windows Registry Editor Version 5.00
> [snip]

>
> And then save it ? Where ? :)

As Chunlei says, you can save it anywhere as a .reg file, then
right-click and run the 'Merge' option (on WinXP). It's basically
a convenience method for adjusting registry settings.

I would be very interested to hear how it turns out, and I'm sure
others as well. It might help others down the line, because it's
likely Windows 7 users will need to follow such things too.

I did search Google for information on doing this in Vista, and it
generally looks like Vista is a step backwards from XP on this (or
just different, but not well-received by XP users), some .reg
files might not even work, and a lot of advice was about manual
adjustment or third-party utilities. So, it would benefit the list
if you (or anyone else using Vista) could see this through and
tell us how it went. IIRC, the Vista file association mechanism is
different from XP, and there was some sort of association stack
involved, so your experiences on this way of automatically setting
file associations will help other users of SciTE on Vista.

bergamasque

unread,
Jan 23, 2009, 11:56:33 AM1/23/09
to scite-interest
Hi,

Thanks, I meant to report on this as soon as I got it done. So, I did
it all, stuck the content indicated as it was and merely renamed the
folder that contains the scite.exe 'SciTE' so as to match the path in
the scite.reg, and merged it (the option that was at the top of the
menu when I right-clicked the file) and it went well. A popup
confirmed that the changes had been made to the registry.

Then I double-clicked a .txt file and it opened again with Notepad. I
tried to right-click another and open it with Scite, browsing into the
Program Files, but again it opened with Notepad. See, when I select
scite.exe as the program of choice, it doesn't even show in the 'Other
programs' window. Here's a screenshot: http://i42.tinypic.com/14ahq9w.jpg

Maybe it has something to do with the fact I didn't use an installer
but downloaded a .zip that I extracted and stuck by hand in the
Programs folder, so maybe Vista refuses to aknowledge it's there
unless I open the program directly by clicking on the SciTE.exe file ?

Anyway, thanks for your interest.

bergamasque

unread,
Jan 23, 2009, 12:02:43 PM1/23/09
to scite-interest
Also, when I started this thread, I was bummed by the monospace font
that was used by default in the 1.57 version I had installed (and had
to be turned off by hand everytime I opened SciTE), I should mention
that setting SciTE to open .txt files by default DID work then
actually. I don't remember about what happened when right-clicking,
though. This 1.77 version just isn't working for me. Maybe it needs an
installer or I need to find the right one that will work for me,
monospace-free and opening files by default without a hassle. I'll
comb the website for possible other candidates to install...

bergamasque

unread,
Jan 23, 2009, 12:11:44 PM1/23/09
to scite-interest
I just used the 1.77 installer from here: http://gisdeveloper.tripod.com/scite.html

Everything happens as the above, except that now when I right-click on
a .txt file, I do get an option in the menu 'Edit with SciTE', which
is an improvement. Still weird that I can't set it as program by
default, though, not even in the 'Programs by default' manager from
the Start menu...

KHMan

unread,
Jan 23, 2009, 12:32:00 PM1/23/09
to scite-i...@googlegroups.com
bergamasque wrote:
> Thanks, I meant to report on this as soon as I got it done. So, I did
> it all, stuck the content indicated as it was and merely renamed the
> folder that contains the scite.exe 'SciTE' so as to match the path in
> the scite.reg, and merged it (the option that was at the top of the
> menu when I right-clicked the file) and it went well. A popup
> confirmed that the changes had been made to the registry.
>
> Then I double-clicked a .txt file and it opened again with Notepad. I
> tried to right-click another and open it with Scite, browsing into the
> Program Files, but again it opened with Notepad. See, when I select
> scite.exe as the program of choice, it doesn't even show in the 'Other
> programs' window. Here's a screenshot: http://i42.tinypic.com/14ahq9w.jpg

So apparently it had no real effect on Vista... bummer. On WinXP,
SciTE does not show on "Other Programs" as well, but there is a
"Browse..." button (Parcourir... in your pix?) where you can
locate the SciTE executable file for Windows to make the association.

> Maybe it has something to do with the fact I didn't use an installer
> but downloaded a .zip that I extracted and stuck by hand in the
> Programs folder, so maybe Vista refuses to aknowledge it's there
> unless I open the program directly by clicking on the SciTE.exe file ?

I've seen third-party tools for doing file associations for Vista,
but dunno if they are reliable. Might be worth a shot, perhaps...

> Anyway, thanks for your interest.
>
> On Jan 23, 1:03 pm, KHMan <keinh...@gmail.com> wrote:
>> bergamasque wrote:
>>> So I create a file named 'scite.reg', paste the following in it:
>>> Windows Registry Editor Version 5.00
>>> [snip]

[snip snip]

berga...@gmail.com

unread,
Jan 23, 2009, 12:44:50 PM1/23/09
to scite-i...@googlegroups.com


On Fri, Jan 23, 2009 at 6:32 PM, KHMan <kein...@gmail.com> wrote:

KHManwrote:

So apparently it had no real effect on Vista... bummer. On WinXP,
SciTE does not show on "Other Programs" as well, but there is a
"Browse..." button (Parcourir... in your pix?) where you can
locate the SciTE executable file for Windows to make the association.

It is exactly what I have been doing, browse for the SciTE.exe file, highlight it, click 'open' or double-click it, which then brings me back to that screen I took a screenshot of, where the SciTe icon *still* won't show under 'Other programs' and then when the file opens, it opens in _Notepad_.
Oh well, guess I'll stay with that installer I found that at least gives me the 'Edit with SciTE' option when I right-click a .txt file and then keep on checking on future updates. Thanks everyone! 
Reply all
Reply to author
Forward
0 new messages