SciTE for Mac OS X (X11)

Step 1: Download

Download the scite-macosx.tar.gz (Version 1.6) created by Adam Lindsay at http://homepage.mac.com/atl/tex/. This will get you all the pre-compiled stuff you'll need to run SciTE.

Once you have it downloaded, open your Terminal.app and run the following commands:

cd /usr/local
sudo tar xf pathToDownloadFolder/scite-macosx.tar

Launch X11.app, and launch SciTE for the first time with:

/usr/local/bin/SciTE

Step 2: ProFont

So, now you've got SciTE installed and running. How the heck do you change the font to a good programming font? Download these: ProFont (Mac) and ProFont (Linux/X11). You can install the Mac font real easily. Double-Click it then click the "Install Font" button; Done. The Lunux/X11 font will take a little more interaction to install for your X11 apps to use.

Step 3: Installing ProFont in Linux/X11

Here's a Google Cache of the original process.

You can follow these summarized instructions to make it a little easier.
I created a new folder in my user's Library folder called UNIXFonts here: /Users/<username>/Library/UNIXFonts/

Decompress the Linux/X11 fonts into your newly created folder, and you'll get like 7 files named "ProFont_r400-10.pcf". Now go to the Terminal and switch to your UNIXFonts folder.

cd /Users/<username>/Library/UNIXFonts/

Run gzip on each of them to make them smaller and prepare them to be used.

gzip ProFont_r400-10.pcf
gzip ProFont_r400-11.pcf
gzip ProFont_r400-12.pcf
...

Now your fonts folder is ready to be blessed as a true fonts folder so type the following. This will generate an index of all the fonts in here so your system knows what's in there.

mkfontdir

To add the fonts folder to the checklist for the current session type this:

xset fp+ /Users/<username>/Library/UNIXFonts
xset fp rehash

To add it more perminantly, so it's available in every session (even later), you'll need to add it to the catalogue section of your X11 font setup file; located here: /etc/X11/fs/config. The file when you are done should look like this:

catalogue = /Users/<username>/Library/UNIXFonts,/usr/X11R6/lib/X11/fonts/misc/, /usr/X11R6/lib/X11/fonts/TTF/,/usr/X11R6/lib/X11/fonts/Speedo/, /usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/, /usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/

You can type xlsfonts | grep pro to get a list of all the font names with the letters "pro" in them

xlsfonts | grep pro
-nil-profont-medium-r-normal--0-0-72-72-c-0-iso5589-1
-nil-profont-medium-r-normal--10-100-72-72-c-50-iso5589-1
-nil-profont-medium-r-normal--11-110-72-72-c-60-iso5589-1
...

Step 4: Setup xterm

Now that you know the name of the font, you can use it when opening a new instance of xterm, adding the font name to the -fn flag, and paste this into your X11->Applications->Customize Menu... Change the xterm line that says: Terminal -- xterm to the following:

xterm -fn -nil-profont-medium-r-normal--11-110-72-72-c-60-iso5589-1&

This should open up a new xterm window with the specified font in use.

Step 5: SciTE Launcher

Here you can download a native Mac OS X Launcher for SciTE which you can even put in your dock. SciTE.app.zip It will run, Launch Scite, Then exit. If you open it while SciTE is already open, it will switch to the editor making it the frontmost window.

Powered By Mac OS X
And Apache Software
Valid XHTML 1.0 Strict Valid CSS!
This page has been
loaded 4168 times.