http://www.daniweb.com/web-development/php/threads/470495/trim-content#post2052543

I see the link in the code as strikethrough (Win7/IE11). Image attached.

0ab8e0c6fc92294cb65c942ed5249b0b

Recommended Answers

All 33 Replies

Same here on:

  • Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
  • Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:26.0) Gecko/20100101 Firefox/26.0

I've seen this in many threads in the last few days.

That's by design. We put a strikethrough through broken links.

In my opinion in the code blocks this is distracting. The link should not be clickable by default, no matter if this is broken or not and mantain his readability.

:)

The link should not be clickable by default

The reason why we turn URLs into clickable links within code snippets is because sometimes snippets include comments with a link crediting the origin of the source code and that type of thing.

Completely out of curiosity, cereal, did this just start bothering you because broken links are crossed out, or have you had a pet peeve with links within code snippets all along (note, links have existed within code snippets here for the past decade)??

broken links

Broken for who? Your server? You get false positives on websites with IP blocks. Is that why they remain clickable?

The reason why we turn URLs into clickable links within code snippets is because sometimes snippets include comments with a link crediting the origin of the source code and that type of thing

Ok, thank you for your reply.

Please, mine is just an opinion, not a complaint. I'm paying attention to this just because the links are crossed out in the code blocks. To me it's not a problem if a link is clickable or not, I was only suggesting a solution.

If a link is going to be overlined because is broken, then it can become difficult to read, at least for me: many times in the threads we use example links, to request help with rewrites or just to show the structure of an url. That line does not help me to answer, it just make it difficult to read.

Bye :)

Broken for who? Your server? You get false positives on websites with IP blocks. Is that why they remain clickable?

We flag the link as bad if our server tried multiple times to try to access it, and it is 200% broken. If it "might" be, or if it seems like just a temporary glitch, we let it slide.

Cereal, good to know your feedback :) So it just started bothering you once we started crossing out the links, not having the links in the first place.

many times in the threads we use example links, to request help with rewrites or just to show the structure of an url. That line does not help me to answer, it just make it difficult to read.

I agree. Why not treat them as text within code tags.

For the reason I mentioned above, which often has me clicking links in code snippets.

which often

It was "sometimes" in your previous post. Anyhoo, lose the strikethrough in code snippets then for readability.

Sometimes ... often ... you know, I don't spend a lot of time in the programming forums :)

OK I'll add it to my list of things to do after the current weekend project I'm working on.

OK, working links in code snippets are now only underlined when you hover over them and broken links in code snippets are crossed out when you hover over them. The rest of the time, they don't interfere with your code reading.

commented: thank you! +0

Just an additional question. The first link in this thread is crossed out. Although SmartScreen warns against going there, it's still valid. Is this by design too?

In that particular post, the poster forgot to include http:// in the link, so the link was broken. I've gone ahead and fixed it.

You're killing me here :) Can't I leave it for inline code? Pretty please? I could understand the strikethrus getting in the way with long code snippets, but I think with inline code its more helpful than annoying??

You don't even know who stands behind you! :-P

Come back with your posse and then we'll talk.

cereal I think.

Confirmed.

Come back with your posse and then we'll talk.

lol!

Member Avatar for diafol

I've offering myself to be a deputy too p ;)

Member Avatar for diafol

Another example: http://www.daniweb.com/web-development/php/threads/471195/separating-front-end-and-back-end-using-codeigniter#post2056125

Last line or so. User tried to inline code the url so it wouldn't autolink.

I wouldn't want http://localhost/index.php to be autolinked.

Testing...

http://localhost/index.php http://localhost/index.php

http://localhost/index.php

Arghhh! Nothing works - maybe good old fashioned split the http...

http: //localhost/index.php

..but that's a bit lame. :(

It looks like the site was temporarily down because i re-ran my link checker on the post and it didn't flag it this time around. Links are always automatically rechecked on a monthly basis.

It's not the link checker script, I can tell you that. I'm wondering if it might be our servers though :) I'll loosen up the constraints a bit.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.