Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7983419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:57:10+00:00 2026-06-04T10:57:10+00:00

As part of a Rails project, I’d like to create some custom settings (specifically

  • 0

As part of a Rails project, I’d like to create some custom settings (specifically indentation!) for “HTML (Rails)” (aka .html.erb) files and Ruby on Rails files (.rb files).

I know how to create and edit a Preferences.sublime-settings file – AND a Ruby.sublime-settings file – but I have one question remaining for each file type:

(1) For .html.erb files, what [language] do I use when creating the [language].sublime-settings file? Is there a big list somewhere of all the languages possible to use in this case and others?

(2) After I’ve created these custom settings (as I have for Ruby.sublime-settings already, customizing my tabs to 2 spaces), I would like to globally apply these new settings to all Ruby riles.

(Bonus) My .rb files within my Rails project seem to load the “Ruby on Rails” syntax instead of just the “Ruby” syntax (shown in the bottom-right of Sublime Text). If Ruby.sublime-settings will not affect .rb “Ruby on Rails” files (this seems to be the case for me..), I would love an answer for #1 for both .html.erb AND .rb files that are created as part of a Rails project.

I’ve found much info on SO related to this question, but the two questions above remain unanswered for me after ~1 hour of Googling and creeping the Sublime Text docs.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T10:57:12+00:00Added an answer on June 4, 2026 at 10:57 am

    OOOOhhhhh, I figured this one out on my own.

    Sublime can generate custom settings-sublime files for each file type via its UI – this doesn’t have to be created via command line or Terminal, etc.

    Here’s how it’s done:

    1. Open Sublime application
    2. Open (or bring to focus) any file of the type you’d like to make custom settings for, e.g. a .HTML.ERB file
    3. Use the menu & go to Sublime Text 2 > Preferences > Settings – More > Syntax Specific – User

    This opens a sublime-settings file with the proper syntax/type/name. Enter your settings here, then save the file. 🙂

    DONE!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my Rails 3 project I have a list of routes like this: resources
So I have translated all my pages using the I18n part of rails. My
I'm converting a part of a rails application to its own sinatra application. It
I want to setup a rails app on heroku that is part of a
I'm writing a little Rails app & part of that is pulling in a
OK, I've been using sqlite3 as development successfully for this tiny rails 3.1 project,
A large part of a project I'm working on now deals with sending certain
I'm new to rails and setting up the ticketee project based on Rails in
I'm using jeweler to create a gem for Rails 3. The gem contains a
I tried out rails 3, and just started a new project. The following is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.