GithubHelp home page GithubHelp logo

highlight_reel's Introduction

Custom syntax highlighting for Ruby and Ruby On Rails for Sublime Text 2. Should also work with TextMate and Sublime Text 3, but hasn't been tested. Sublime Docs on Syntax Definitions

NOTE: This doesn't work on Sublime 3.1 :( I'll have to find time to try to fix it.

Ruby

  • %i and %I arrays - symbol
  • Classes without method calls - class
  • require_relative - keyword
  • fail - keyword
  • YARD documentation tags - entity.yardoc.tag.ruby
  • YARD variable names - entity.yardoc.name.ruby
  • YARD option names - entity.yardoc.option.ruby
  • YARD data types - entity.yardoc.type.ruby
  • TODO-style comment tags - entity.comment.todo

Rails

  • add validates to ActiveRecord keywords
  • add Rails 4 ActionController keywords

Monokai Theme (Default)

  • color block arguments pink / italicize
  • color class and module declarations green
  • color Instance-vars and Class-vars purple
  • color YARD tags light gray / italicize
  • color YARD variable names brown
  • color YARD option names purple
  • color YARD data types teal
  • invert colors on TODO-style comments

Keymaps

  • handle | as a paired character (thanks to hivehand)
  • Add alt+d as goto_definition

Snippets

  • Don't auto-complete :key => value when a colon is typed

Getting Started

Clone the repository, then from the home directory run:

bash sublime_2_setup.sh

or

bash sublime_3_setup.sh

Textmate Setup coming soon!

highlight_reel's People

Contributors

ygnessin avatar

Stargazers

Jonathan Graham avatar Rohan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.