Closed GoogleCodeExporter closed 9 years ago
I'm not quite sure what the issue is, but you are using lang-css with HTML?
If you change the lang-css to lang-html or leave it out altogether, does your
problem
go away?
Original comment by mikesamuel@gmail.com
on 14 Aug 2009 at 5:55
Removed lang-css, tried lang-html, but the snippet highlight is still wrong.
Look here
- http://techtonik.rainforce.org/2009/06/code-syntax-hightlight-for-blogger.html
Original comment by techtonik@gmail.com
on 21 Aug 2009 at 8:36
Ok. I think I see the problem: # is being treated as starting a comment.
Original comment by mikesamuel@gmail.com
on 3 Oct 2009 at 7:34
And # is being treated as a comment character because you never load
lang-css.js into
your page. Please try that. It uses the default code highlighter if the CSS
one is
unavailable.
Original comment by mikesamuel@gmail.com
on 3 Oct 2009 at 7:41
I thought that "lang-css" class would be enough. Perhaps documentation was not
clear
enough that additional lang-css.js is required as well as class. BTW, why isn't
it
possible to fetch the lang-css.js dynamically if its class is encountered?
Original comment by techtonik@gmail.com
on 3 Oct 2009 at 10:58
You're right. The documentation could be clearer.
It is certainly possibly to dynamically fetch code, but that would introduce a
synchronous network round trip.
Original comment by mikesamuel@gmail.com
on 5 Oct 2009 at 2:57
Is this synchronous roundtrip a real problem? The .js file is still cacheable
by the
browser, isn't it?
Original comment by techtonik@gmail.com
on 6 Oct 2009 at 12:27
Depending on how it is served, it would probably be cacheable.
If it stops user interaction with the page on first view, they may not stay on
the
site long enough to benefit from the caching.
Original comment by mikesamuel@gmail.com
on 6 Oct 2009 at 6:43
Original issue reported on code.google.com by
techtonik@gmail.com
on 5 Jun 2009 at 8:17