Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix highlighting inside embedded script tags #17

Closed
jonschlinkert opened this issue Jun 26, 2013 · 2 comments
Closed

fix highlighting inside embedded script tags #17

jonschlinkert opened this issue Jun 26, 2013 · 2 comments

Comments

@jonschlinkert
Copy link
Contributor

javascript like this isn't highlighted:

<script type="text/javascript">
  var _gaq = _gaq || [];
  var pluginUrl =
    '//www.google-analytics.com/plugins/ga/inpage_linkid.js';
  _gaq.push(['_require', 'inpage_linkid', pluginUrl]);
  _gaq.push(['_setAccount', '{{site.google.analytics}}']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script');
    ga.type = 'text/javascript';
    ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(ga, s);
  })();
</script>
@daaain
Copy link
Owner

daaain commented Jul 30, 2013

This seems to be fixed in latest!

@daaain daaain closed this as completed Jul 30, 2013
@jonschlinkert
Copy link
Contributor Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants