Cloud9 IDE local themes

守給你的承諾、 提交于 2019-12-04 23:45:00

问题


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.


回答1:


Follow these steps, assuming my theme name is 'pretty.tmTheme':

  1. Copy pretty.tmTheme to 'cloud9/node_modules/ace/tool/tmThemes/'
  2. Go to cloud9/node_modules/ace/tool/ and run 'node tmtheme.js'
  3. Go to cloud9/
  4. Run 'make ace'
  5. Run 'make theme'
  6. Open cloud9/plugins-client/ext.themes_default/themes_default.js and add your theme to the list. For ex: '"Pretty": "ace/theme/pretty"'
  7. Run Cloud9 and select new theme from the view/themes list.
  8. Enjoy! ;)



回答2:


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':

  1. Copy 'All Hallows Eve.tmTheme' to 'cloud9/node_modules/ace/tool/tmThemes/'
  2. 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'.
  3. Go to cloud9/node_modules/ace/tool/ and run 'node tmtheme.js'
  4. Go to cloud9/
  5. Run 'make ace'
  6. Run 'make theme'
  7. 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"'
  8. Run Cloud9 and select new theme from the view/themes list.
  9. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!