What languages ​​/ syntaxes are possible in Sublime Text 2 settings?

As part of the Rails project, I would like to create some custom settings (indentation in particular!) For the HTML (Rails) files (aka.html.erb) and Ruby on Rails files (.rb files).

I know how to create and edit the Preferences.sublime-settings file - And the Ruby.sublime-settings file - but I have one question left for each file type:

(1) For .html.erb files, which [language] do I use when creating the [language] .sublime-settings file? Is there a large list somewhere of all the languages ​​that can be used in this case and others?

(2) After I created these user preferences (as I already have the Ruby.sublime options, setting my tabs to 2 spaces), I would like to globally apply these new settings to all Ruby riles.

(Bonus). My .rb files in my Rails project seem to load the Ruby on Rails syntax instead of the Ruby syntax (shown in the lower right corner of Sublime Text). If the Ruby.sublime options do not affect the .rb "Ruby on Rails" files (this seems to be the case for me ..), I would like the answer for # 1 for the .html.erb AND.rb files that were created in as part of the Rails project.

I found a lot of information about SO related to this question, but the two questions above remain unanswered for me after ~ 1 hour of Googling and crawl with Sublime Text documents.

Thank!

+3
1

OOOOhhhhh, , .

Sublime - - ..

:

  • Sublime-
  • ( ) , , . .HTML.ERB
  • Sublime Text 2 > Preferences > Settings - More > Syntax Specific - User

//. .:)

!

+9

All Articles