I renamed the package from Neon Theme
as this is really a color scheme and I don't want to mislead/confuse anyone. However, I am working on an actual Neon-inspired theme for Sublime, so stay tuned...
Now available through Package Control!
Neon is a cool bright-on-black color scheme for Sublime Text 2/ST3 and TextMate (versions 1 and 2). In designing it, I've aimed to make as many languages as possible look as good as possible, taking advantage of as many of the available scopes as I can. Neon was originally designed for Python, which has a very detailed language definition, but lots of languages look good with it, like JavaScript, CSS, HTML, Ruby, PHP, shell scripts, XML, Clojure, Fortran (really!), R, LaTeX, Markdown, reStructuredText, and more. It's also great when using @wuub's fantastic SublimeREPL plugin, which I can't say enough good things about.
There are a bunch of scopes in here that are only found in my PythonImproved .tmLanguage
syntax file — IPython In
/Out
statements, Django-specific highlighting (from Djaniero), and a bunch of improvements from @facelessuser's Better Python, along with various enhancements, extensions, and bug fixes of my own. If you work with Python, I'd highly recommend getting it.
You can find out more about themes in the TextMate manual. All the information there applies to Sublime Text as well, which was heavily influenced by TextMate. Both programs can share themes and language definitions pretty much interchangeably, and snippets are usually pretty easy to port from one to the other as well. But, unfortunately for you Win/Lin people, TextMate is only available for OSX.
======= I'm always tweaking and adding things, so the preview pix may not closely match the actual theme. YMMV.
The easiest method is through Package Control, which you need to install first as it doesn't come with Sublime Text. Open the command palette with CtrlShiftP (Windows/Linux) or ⌘ShiftP (OSX) and type pci
or packconin
or whatever you like to get Package Control: Install
showing. Click or hit Enter, type in neon
, and Neon Color Scheme
should show up. Select it, then activate the theme by choosing the Preferences -> Color Scheme -> Neon Color Scheme -> Neon
menu option.
If you like to do things the old-fashioned way, in ~/Library/Application Support/Sublime Text 2/Packages/User
(OSX), %APPDATA%\Roaming\Sublime Text 2\Packages\User
(Windows), or ~/.config/sublime-text-2/Packages/User
(Linux):
git clone git://github.com/MattDMo/Neon-sublime-theme.git "Neon Color Scheme"
This will create a menu option Neon
under Preferences -> Color Scheme -> User -> Neon Color Scheme
.
For right now, manual cloning is the only option. Hopefully a bundle will be available soon for TM1 and TM2.
git clone git://github.com/MattDMo/Neon-sublime-theme.git "~/Library/Application Support/TextMate/Themes"
Or, you can just download the .zip file and put it in the proper theme directory yourself.
While I really like the level of control I get with Sublime's system of config files, editing themes by hand (in XML) is rough. So, I keep the main copies of my themes in the TextMate folder so I can use its theme editor for tweaks. In ~/Library/Application Support/
I then run ln -s TextMate/Themes/Neon.tmTheme "Sublime Text 2/Packages/Color Scheme - Default/Neon.tmTheme"
to symlink it to Sublime.
I'd also recommend checking out aziz's tmTheme-Editor, but alas it currently only works with Google Chrome because of some the HTML5 APIs it uses. Regardless, it's a pretty neat app, and Neon is included!
Sometimes the same file looks different in TextMate and Sublime Text 2. It may be that the scopes are defined somewhat differently, or that the parsers don't work in quite the same way. Hack the .tmlanguage
definition files if you're interested.
If you have questions, concerns, or suggested improvements, I'd love to hear from you! Feel free to open an issue or send a pull request and I'll get back to you as soon as I can. You can also email me at [email protected].
© 2012-2013 Matt Morrison [email protected].
This is free software. It is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. Feel free to use this theme in your own work. However, if you modify and/or redistribute it, please attribute me in some way, and distribute your work under this or a similar license. A shout-out or a beer would be appreciated.
You can also [give on Gittip](https://www.gittip.com/on/github/MattDMo/).