Skip to content

Instantly share code, notes, and snippets.

@thowar2
Last active December 3, 2015 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thowar2/5f7da80b5887f7c5f20e to your computer and use it in GitHub Desktop.
Save thowar2/5f7da80b5887f7c5f20e to your computer and use it in GitHub Desktop.
Adding Deface Syntax Support to Sublime Text

Adding Deface Syntax to Sublime Text

  1. Install ApplySyntax package from package manager
  2. Add the following to the user settings for the package:
{
    // Deface ERB
    "name": "Rails/HTML (Rails)",
    "extensions": ["deface"],
    "rules": [
        {"file_name": ".*\\.html\\.erb\\.deface"}
    ]
},
{
    // Deface 
    "name": "Rails/Ruby on Rails",
    "extensions": ["deface"],
    "rules": [
        {"file_name": ".*\\.deface"}
    ]
},
@philbattos
Copy link

Thanks for this! It wasn't immediately clear to me where in the user settings to put the above code. Putting it at the top or bottom of the file generated Sublime errors. But everything worked great when i put it in the "syntaxes" array.

@prdanelli
Copy link

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment