Hi, recently I've added a lot of code samples which use generics such as List<string>. Why when a code block is set to be c# does the code project website try and parse the generic identifiers as XML? As when you add List<string> the website automatically adds </string> to the end of the code block. It's quite annoying.
As when you add List<string> the website automatically adds </string> to the end of the code block. It's quite annoying.
Because you missed 'encoding' your tags. If you want to use the angular brackets as is, encode it. If it is left without encoding, it is considered a bad tag (unclosed one) and CP tried to put a closing tag to make it a valid XML.
Next time, just encode the Generics. (One of the options in the toolbar)
Since the recent interface update I've been using this site more on a tablet. One thing I noticed is that you can't use any of the popup menu's like 'home', 'articles', 'quick answers' in the top bar, because they are triggered by mouse hover and touchscreens can only generate clicks.
I personally never use the click-action on the items you have to hover over for a menu, so maybe it would be a good idea to change them so that the menu pops on both hover and click?
I think the site is used mostly from a PC (because you don't code on a tablet), so if a lot of people actually use the click-action you might want to ignore the minority who don't use the site with a mouse.
To give vote,at first when i mouse over it,it hiddens for sometime,then after 2-3 seconds it is visible and then i give vote.I think it is time consuming.In previous version total and online member number,my account name,total reputation point and sign out links are colored as blue(now it is dark) which highlights user's attention easily,it think it should keep blue or such color which will highlight these.
Where? I assume you mean in the forums? Which browser are you using?
There's no need to wait to vote on the voting bar in forums. The transition from grey to blue is set at 100ms, not 2-3 seconds. Is your system generally slow, or is it only CodeProject that seems slow?
The spacing setting si not persisting. I have selected and then clicked on uodate, to no avail. Everytime I come back it has reset to relaxed. (Excellent feature, btw, really love the new look now that the spacing issue is resolved).
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair. nils illegitimus carborundum
1 This is a pre-block with linenumbers.
2 If it's part of an article, it gets replaced with spans.
3 The annoying part is that the span does not really replace it;
4 giving you an extra column with the linecount after every edit.
Meaning, if I edit my last article and update it (without changes), I'll get this;
1 1 This is a pre-block with linenumbers.
2 2 If it's part of an article, it gets replaced with spans.
3 3 The annoying part is that the span does not really replace it;
4 4 giving you an extra column with the linecount after every edit.
Does happen when you edit an article, but not in a forum-post (just tried it)
Bastard Programmer from Hell
if you can't read my code, try converting it here[^]