Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GC not only for css #108

Open
nicholasrq opened this issue Feb 20, 2017 · 0 comments
Open

GC not only for css #108

nicholasrq opened this issue Feb 20, 2017 · 0 comments

Comments

@nicholasrq
Copy link

I wondering if there's any way to enable GC in files other than css, e.g. js files.

For example i have file with something like this and want GC to colorize it:

const ACTIONS_MAP = {
  change        : { timeout: 300, color: '#FFFF02' },
  input         : { timeout: 300, color: '#FFFF02' },
  keystroke     : { timeout: 300, color: '#FFFF02' },
  scroll        : { timeout: 300, color: '#47669A' },
  focus         : { timeout: 100, color: '#0092EB' },
  blur          : { timeout: 100, color: '#0092EB' },
  mousemove     : { timeout: 100, color: '#5ABB8E' },
  touchmove     : { timeout: 100, color: '#5ABB8E' },
  click         : { timeout: 300, color: '#ff0000' },
  mouseup       : { timeout: 300, color: '#ff0000' },
  mousedown     : { timeout: 300, color: '#ff0000' },
  touchstart    : { timeout: 300, color: '#ff0000' },
  zoom          : { timeout: 300, color: '#ff0000' },
  resize        : { timeout: 500, color: '#FF00C3' },
  mutation      : { draw: false }
}

Is there any simple way to achieve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant