Closed roryokane closed 10 years ago
You have the file app/assets/javascripts/highlight.js
, which is probably the Highlight.js library. According to that library's demo page, it should already know how to highlight CoffeeScript correctly.
looks like I fixed it. thanks for the tip
For example, see the Classes and Modules documentation page. This code block is unhighlighted:
On the site, comments with
#
and keywords likeclass
are not marked specially, but should be.This JavaScript later on in the page is correctly highlighted:
As GitHub's highlighter shows, it certainly is possible to highlight CoffeeScript.
Note that the CoffeeScript code block on that page is highlighted, but looking at the source, it is being highlighted as JavaScript, which only looks okay in this case because that snippet doesn't use any CoffeeScript-specific syntax.