Angular Syntax Highlighting in Rubymine

I am just working through a RailsCast AngularJS tutorial. Loving angular however RubyMine does not want to highlight the code correctly:

@RaffleCtrl =  ($scope)->
  $scope.entries = [
    {name: "Foo"}
    {name: "Bar"}
    {name: "Who"}
  ]

  $scope.addEntry = ->
    $scope.entries.push($scope.newEntry)
    $scope.newEntry = {}


  $scope.drawWinner = ->
    entry = $scope.entries[Math.floor(Math.random()*$scope.entries.length)]

The biggest problem here is that

$scope.addEntry
is not highlighted as a function its just plain white text - which will be hard when I start building this out into a larger file.

Also thing such as
$scope.entries.push($scope.newEntry)
I would expect
.push
to be highlighted but it is not.

I have the AngularJS plugin installed, and the RailsCasts code style.

What am I doing wrong?
1 comment

are you sure your filename ends in ".js.coffee" ?

0

Please sign in to leave a comment.