Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What's the best way to convert a Notepad++ style into a Sublime Text/Textmate syntax?

share|improve this question
up vote 1 down vote accepted

I've never found such a converter myself, but it wouldn't be too difficult to code up such a thing if you have moderate programming skills and spare time. Beyond that though, I think you'd have to do it manually, which actually wouldn't be too terrible.

Create a tmTheme file like this one:

...and using this NPP theme as an example:

...just copy the fgColor and bgColor hex codes from the NPP XML file into the appropriate tags in the tmTheme file (e.g. String, Constant, etc)

Obviously there's not a 1:1 mapping of elements getting syntax-highlighted between the two editors, but with a bit of tweaking, you can approximate the NPP themes in Sublime Text.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .