I’m a pretty heavy user of colon hashes but the default Aptana Studio Ruby doesn’t provide any highlighting for them.
Here’s a colon hash in Ruby 1.9:
{ animal: "duck" }
Does anyone know what bits I need to punch to make the “animal:” part display in another colour?
Update:
It seems from reading the source that the PLists file isn’t being used by Aptana and that the feature is presently incomplete.
https://github.com/textmate/ruby.tmbundle/issues/17
I’ve tried changing the scopes in source but it doesn’t seem to update for me.
To find the scope Aptana is trying to highlight
- Commands -> Bundle Development -> Show Scope and Matching Theme Rule (alternatively the default shortcut is Ctrl+Alt+P)
- Read the box. It may list several scopes.
The way you add a scope:
- Window -> Preferences
- Select Aptana Studio then the Themes option.
- Press the + button next to the Scope Selector textbox.
- Add your scope and set the colours.
- Apply and click OK
I’m all out of ideas. Hopefully this will help someone get closer.
Aptana Studio 3 uses TextMate themes for syntax highlighting, so you just need to find a TextMate theme that supports it.