This is a Python script to convert a Textmate theme (tmTheme) to an Intype theme (itTheme).

Download

Choose one or both, it doesn't matter really.

Requirements

  • Python 2.5 – You'll need Python to run the Python script. I've only tested it in Python 2.5. Chances are, it may work in Python 2.4 or earlier.
  • Intype – Naturally! (So you can use the converted theme)
  • Microsoft Windows 2000/XP/Vista – Intype only runs on Windows. If you're on Mac, shouldn't you be over there? Other Linux/UNIX users should probably go play with emacs or Vim :P (Just kidding, theres one or two similar editors for KDE and GNOME, just look around).

Usage

Its actually pretty simple to use, well if you're familiar with the command line. You fire up the command line and navigate to where you downloaded the script, and run it from there.

  1. Download the Textmate to Intype Converter Script. This is after all why're you here isn't it?
  2. Extract the zip to somewhere easy to get to, like say C:\Intype\
  3. Fire up the command line using any method you choose.
    • The Start Menu Way: Start Menu → Accessories → Command Prompt
    • The Hot Key Way: Hit WinKey + R. Then type cmd and click OK or hit the Enter key.
    If you're on Linux, Mac or any other Unix based environment, you most likely know how to find the Terminal (command line). If you don't, theres Google :)
  4. Navigate to where you've unzipped the files. Using the example, you can type cd C:\Intype\.
  5. This is the fun part, type the command:
    python intype.py "C:\path\to\textmate\theme.tmTheme"
    and hit the Enter key. This will try to convert the Textmate theme to an Intype theme. The converted Intype theme can be found in the same folder as the original Textmate theme.
  6. Alternatively, if you downloaded the binaries (the executables, y'know, the .exe), type the command:
    intype "C:\path\to\textmate\theme.tmTheme".

Issues, Gotchas, Bugs etc.


Converted Themes

Here are some Textmate themes I've converted already

Here are some themes fixed up by Duncan Flock

Credits

Gotta give it where its due.

  • Element Tree – An XML Library for Python
  • PList Reader: A Python library to read Apple's Property List XML (No longer used)
  • Intype: was used to write this script.

If you've any suggestions or have any problems, you can contact me at or . You can also leave a post on the Intype forums here.