Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

highlight.js syntax highlighting for CoffeeScript

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 tests
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
README.md

CoffeeScript Syntax highlighting for Highlight.js

NOTE: the original implementation had been merged into the main highlight.js. This repo is not longer maintained. Please refer to https://github.com/isagalaev/highlight.js/blob/master/src/languages/coffeescript.js

This projec aims to support syntax highlighting for CoffeeScript.

If you have any questions please contact me @dnagir.

You can see example with all available styles and some code snippets if you clone the repo and open the lib/index.html.

Install

Just drop the lib/highlight-coffee.js into your project. You can use coffee class on the code tag to explicitly set the language. Please be sure to have highlight.js included before.

Development

  • When creating a pull request please make sure you do have tests for your changes and existing ones are passing.
  • Source hosted at GitHub
  • Report issues and feature requests to GitHub Issues

Pull requests are very welcome!

TODO List

  • support heregexes
  • handle formal arguments only (do not highlight actual arguments in function calls, only definitions)
  • highlight the identifier that is assigned a function (like on the CoffeeScript site)

Licensed under WTFPL

            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                    Version 2, December 2004

 Copyright (C) 2011 Dmytrii Nagirniak <dnagir@gmail.com>

 Everyone is permitted to copy and distribute verbatim or modified
 copies of this license document, and changing it is allowed as long
 as the name is changed.

            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  0. You just DO WHAT THE FUCK YOU WANT TO.
Something went wrong with that request. Please try again.