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
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
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.
- 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!
- 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 <email@example.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.