The Cloud9 IDE docs say you can import a Textmate theme, but i cant figure it out. Can some one explain step-by-step how i can do this. Im trying to include the theme on my localhost by the way.
I found this link, but i still dont get it...
https://groups.google.com/forum/#!msg/ace-discuss/kLgJFe2l2YY/47QvhIowqqMJ .
The above url also mentioned being able to edit already existing themes. This would also come in handy if any one knows how to / where the files are located.
Follow these steps, assuming my theme name is 'pretty.tmTheme':
- Copy pretty.tmTheme to 'cloud9/node_modules/ace/tool/tmThemes/'
- Go to cloud9/node_modules/ace/tool/ and run 'node tmtheme.js'
- Go to cloud9/
- Run 'make ace'
- Run 'make theme'
- Open cloud9/plugins-client/ext.themes_default/themes_default.js and add your theme to the list. For ex: '"Pretty": "ace/theme/pretty"'
- Run Cloud9 and select new theme from the view/themes list.
- Enjoy! ;)
Sorry, I don't have enough rep to comment on the accepted answer, but there seems to be a step missing from the list for this to work, at least for me. Here is the edited version, which I will also submit to @Shogun.
Follow these steps, assuming my theme name is 'All Hallows Eve.tmTheme':
- Copy 'All Hallows Eve.tmTheme' to 'cloud9/node_modules/ace/tool/tmThemes/'
- Open 'cloud9/node_modules/ace/tool/tmtheme.js' and add the new theme to the 'theme' var (currently line 231). Example: '"all_hallows_eve": "All Hallows Eve"'. The key you define here will be the one you add to 'ace/theme/' in step 7 and the value would be the tmTheme filename. So for this, step 7 would be 'ace/theme/all_hallows_eve' and the theme file you added in step 1 would be 'All Hallows Eve.tmTheme'.
- Go to cloud9/node_modules/ace/tool/ and run 'node tmtheme.js'
- Go to cloud9/
- Run 'make ace'
- Run 'make theme'
- Open cloud9/plugins-client/ext.themes_default/themes_default.js and add your theme to the list. For ex: '"All Hallows Eve": "ace/theme/all_hallows_eve"'
- Run Cloud9 and select new theme from the view/themes list.
- Enjoy! ;)
Sorry for the lengthy addition. I just want to be as clear as possible. I used a different example than Pretty.tmTheme because it was unclear to me how to account for spaces in filenames when I tried the solution with 'All Hallows Eve'.
来源:https://stackoverflow.com/questions/11410610/cloud9-ide-local-themes