Closed GoogleCodeExporter closed 8 years ago
Would this URL be included via a <script> element :
<script src="http://cdn_server_or_googlecode_svn/prettify.js?lang=hs,scheme&autoload=true"></script>
?
What does autoload mean? Does that control setting up on onload handlers?
Original comment by mikesamuel@gmail.com
on 4 Feb 2013 at 10:25
Have a look and see how MathJax do things – if you could replicate their CDN
install / inclusion that would be great.
Original comment by Sam.Hall...@gmail.com
on 4 Feb 2013 at 10:29
Thanks. I found
http://docs.mathjax.org/en/v1.1-latest/configuration.html#loading and
http://docs.mathjax.org/en/v1.1-latest/options/hub.html but there doesn't seem
to be any autoload option. What did you intend autoload to mean?
Original comment by mikesamuel@gmail.com
on 7 Feb 2013 at 10:40
Autoload in the sense of: include a script file and that is it. No need to
write any further Javascript hooks.
Original comment by Sam.Hall...@gmail.com
on 7 Feb 2013 at 10:43
(As opposed to the multi-line, multi-context, installation that is currently
needed – even if using a public version of the prettify.js script)
Original comment by Sam.Hall...@gmail.com
on 7 Feb 2013 at 10:45
Ok, so ?autoload=true is only used because that URL is serving a dual purpose
as a loader and as one of the loaded components, and is not derived from
anything in mathjax's cdn.
Original comment by mikesamuel@gmail.com
on 7 Feb 2013 at 11:00
https://google-code-prettify.googlecode.com/svn/loader/ now has a
run_prettify.js script which can be used thus:
<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js?skin=sunburst"></script>
It's rough and still needs quite a bit of testing, but the interface is ready
for criticism.
Docs at top of
http://code.google.com/p/google-code-prettify/source/browse/trunk/js-modules/run
_prettify.js
Original comment by mikesamuel@gmail.com
on 11 Feb 2013 at 1:44
Cool, looks good. I'm not able to use it until #224 is addressed - I need to
specify the code language by running a hacky script so auto-loading is not
possible.
Original comment by Sam.Hall...@gmail.com
on 21 Feb 2013 at 6:59
Original comment by mikesamuel@gmail.com
on 25 Feb 2013 at 5:00
Original issue reported on code.google.com by
Sam.Hall...@gmail.com
on 21 Oct 2012 at 9:52