isagalaev/highlight.js — pull request #106 by caseman (2012-07-02 06:08:12+00:00)
Title: Add AMD Build target

I know there have been other efforts in this area, but this patch tries to be more pragmatic, and leaves aside the issue of loading languages as separate modules. All this does is add an "amd" target to the build script that is nearly the same as "browser", but adds a simple define() wrapper around the output script. This requires no change to the javascript, and adds no overhead when not using AMD.