baleezo / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
Apache License 2.0
0 stars 0 forks source link

Typing `http://' turns everything after the `//' into a comment. #172

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Find a prettify-supported editor (StackOverflow.com, for example)
2. Type in `http://www.foobar.com' (minus quotes)
3. You will see that `www.foobar.com' is highlighted as a comment.

There is an example here: http://stackoverflow.com/q/7629413/383609

With the following HTML:

<span class="pln"> http</span>
<span class="pun">:</span>
<span class="com">//site.com/document.html;</span>

I am unsure of the Prettify version, but I'm on FF 7.0.1 on Ubuntu 10.10

Original issue reported on code.google.com by jamwaff...@gmail.com on 2 Oct 2011 at 9:53

GoogleCodeExporter commented 8 years ago
As the first response in that post says

You need to quote your URL:

var myurl = http://site.com/document.html;

// Should be
var myurl = "http://site.com/document.html";

Original comment by mikesamuel@gmail.com on 4 Oct 2011 at 12:03