Precompile Build System?

15 views
Skip to first unread message

Michael Cantera

unread,
Oct 20, 2012, 4:37:17 PM10/20/12
to highl...@googlegroups.com
Is there any way to precompile Highlight.js in development so the markup is already in its finished form when it's sent to the browser?

I use Sublime Text 2 and am thinking it might be possible to incorporate this into a build system, but wouldn't know where to begin.

Ivan Sagalaev

unread,
Oct 20, 2012, 5:18:38 PM10/20/12
to highl...@googlegroups.com
The answer is probably already obvious from the nearby topic, but to
confirm, yes, you should be perfectly able to either call build.py as a
shell script or use it as a Python library. The latter is not
documented anywhere but it works (I use it on the server to pack custom
downloads), and if you intend to use it I could elaborate further.

Michael Cantera

unread,
Oct 20, 2012, 6:51:56 PM10/20/12
to highl...@googlegroups.com
That's great - calling the shell script should be very straightforward using an ST2 build. Thanks again
Reply all
Reply to author
Forward
0 new messages