|
From the W3C page[^]:
Quote: Preformatted text between the start and end PRE tag is rendered using a fixed with font, in addition whitespace characters are treated literally. The spacing and line breaks are rendered directly, unlike other elements, for which repeated whitespace chararacters are collapsed to a single space character and line breaks introduced automatically.
There are two schools of thought on PRE tags
1. Text inside a PRE tag is pre-formatted. Keep it simple. There's no need to use superfluous decoration.
2. (The semantic argument) PRE says "maintain whitepace formatting" and CPDE says "this is code". The two should go together. Except (in my view) your mixing semantic HTML with formatting HTML which in some minds is a bad thing.
Really, what we should have is <div class="code">
What we're doing isn't "wrong". It's just how we do it in order to keep things simple. the issue we came across with code snippets in PRE tags was that authors often forgot to HTML encode tags in snippets (eg snippets of HTML) and so we instituted a policy of auto-encoding all HTML tags inside PRE blocks, with a few exceptions such as B,I,U and SPAN (to allow emphasis).
cheers
Chris Maunder
|
|
|
|
|
Well, some things to consider:
- Shouldn't the "Expert mode: Don't mess with my HTML formatting" option prevent this behavior (I just checked: it doesn't)?
- A technical blog has already been published in its final HTML form and presumably the author has reviewed the result. Reprocessing the HTML a second time doesn't make sense.
- OTOH, for article editing, the current behavior is confusing because the rich-text HTML editor hides the <code> element and any other elements inside a <pre> element, but the published version shows such elements.
- As I noted, the reprocessing performed by CodeProject evidently doesn't do what it was intended to do: the initial <code> tag is reencoded as <code> but the closing </code> tag is deleted instead.
|
|
|
|
|
Hi,
I would find it excellent if notification where cleared when you navigate to a page via alternate means (Not via notifications) such as via the points screen or through the answers section.
Thoughts?
|
|
|
|
|
The problem is that some things are hard to judge as being read. A forum message, for instance, may not be read even if you visit the page the message is on.
I get your point though, and yes it would be nice to come up with a simple solution.
cheers
Chris Maunder
|
|
|
|
|
Was in lounge. Clicked in search edit. The edit control jumped up an inch or so. This was on Firefox 28. Did the same thing in the latest Chrome and IE 11.
|
|
|
|
|
Oh yeah. Oops!
I fixed that a while back but clearly haven't rolled in the changes. Give me a few minutes and I'll get it sorted.
cheers
Chris Maunder
|
|
|
|
|
I wonder how to pick up "old" subjects best?
Recently I stumbled upon the "Alternatives" feature and searched the discussion board first.
I found a matching thread "Add existing article as an alternative" and posted my addition.
But I assume nobody will ever read it since it is deeply buried in the discussion board, is it?
|
|
|
|
|
There isn't any good way to do this other than voting an item marked as accepted, added to TOD or In Progress up.
The reason is that if we added a simple way to bump items, we'd have a bump war. It's be scary.
In any case, that item you replied to was marked "fixed" but I've changed that to "Added to TODO" because it's not actually been fixed. It's on the list. It'll get done.
In the meantime I'm happy to manually associate articles together if you need.
cheers
Chris Maunder
|
|
|
|
|
How about adding a sort by date feature on each board, to see the latest contributions by message and not by thread?
|
|
|
|
|
That would help for those who choose to sort by date, but the default sort (which most people use) would remain.
How many people would actively sort by date in order to see which threads had the last activity?
I'm just not sure how this would provide a general solution to the issue.
cheers
Chris Maunder
|
|
|
|
|
Well, I assume there is no general solution to the issue.
I have no idea either, how many would use it.
But at least CP staff could use it to find "reopened" issues on the bugs/suggestion board.
Anyway, if it is intended to start a new discussion for additions to "old" issues i'm fine with that.
|
|
|
|
|
Re=opening closed items is a good use case actually.
I will ponder. You raise some good points.
cheers
Chris Maunder
|
|
|
|
|
I think of using the CodeProject Open License on my code on GitHub, but I am a bit confused about section 3b and 3c, hence I ask this question:
Can other people:
- fork my code
- make modifications (improvements, bug fixes, new features ...) and push them
- and pull request them if they want?
The quick red ProgramFOX jumps right over the Lazy<Dog> .
|
|
|
|
|
Yes they can.
This raises (re-raises) an issue that we've been discussing internally for a while now: CPOL v.Next.
The CPOL is designed specifically to protect authors while allowing as wide a usage as possible. It has IP and patent clauses, distinctions between your code and your article, and specifically states jurisdiction. It's the fully packed, ticked-all-the-boxes license.
However, it has clauses (eg 3c) that simply don't suit some people so we're looking to provide an updated, more relaxed, less high-string version. Use the CPOL now and then update to the new license if you wish in the future.
cheers
Chris Maunder
|
|
|
|
|
Ok, thanks for answering!
The quick red ProgramFOX jumps right over the Lazy<Dog> .
|
|
|
|
|
I must say, I like the CPOL, and... altough it is very well explained, some points are still a bit obscure/difficult for a not english native as me.
Would it be feasible to add a "side note for dummies" with a brief plain-english explanation of the difficult points of the licenses?
I think many users would appreciate that and probably have less problems to choose the one that fits best their desires.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Yes. Definitely.
cheers
Chris Maunder
|
|
|
|
|
Thanks Chris
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
One more question, is there an exact definition of "prominent notice in each changed file stating how, when and where You changed that file.", or is that up to the author? For me, a Git diff is enough for this, but this might be in contradiction with the license.
The quick red ProgramFOX jumps right over the Lazy<Dog> .
|
|
|
|
|
It's extremely painful to try and provide an exact definition. The overriding principle here would be "what's acceptable to a reasonable person".
cheers
Chris Maunder
|
|
|
|
|
Alright, thanks!
The quick red ProgramFOX jumps right over the Lazy<Dog> .
|
|
|
|
|
For a while I have been getting off-topic ads every once in a while, but it seems like it just got a lot worse. I have been reporting them when I can (not on my phone because it is just about impossible to do without clicking on the ad), but does that actually do anything?
[EDIT]
Message Type changed from Bug to General.
[/EDIT]
Soren Madsen
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty
modified 20-Aug-14 17:42pm.
|
|
|
|
|
SoMad wrote: does that actually do anything
Yes, absolutely!
Yuriy and Julie go through reports every day and nuke the ones that we feel deserve the bad rap. We're also constantly looking at new ad providers to try and keep ads on-topic.
It's an incredibly frustrating problem because while we can find advertisers and ad providers that have great ads, they often have an opt-out instead of opt-in setup, with limits, meaning we can only opt-out of a certain number of ad categories. A further complication is that some providers play a little fast and loose with how they categorise ads. "Finance" could mean "We buy your GOLD!" ads.
We're on it. It's a big topic for us.
cheers
Chris Maunder
|
|
|
|
|
To add to Chris's point, it's an ongoing battle to remove bad ads, as we remove a bad ad there is another one waiting around the corner to take its place. With that said reporting the ads really helps us keep the bad ones out.
|
|
|
|
|
Thanks Chris,
I know you guys are always watching the ad stuff, but for some reason I thought reporting an ad just went straight to DeveloperMedia and I figured there was a good chance they get loads and loads of those. Glad to hear I was wrong.
I want to apologize. When I posted the message, I was boiling over about the whole ad tracking thing. I had been to my banks website earlier and when I started browsing around on the Internet, their ads followed me. I went to CodeProject and their ad came up on just about every other page ["Enhance your calm SoMad"].
This was after having been on the phone with the bank for an hour earlier yesterday - they have been "working" on refinancing my house for over 3 months and now they tell me things I wish I had known at the beginning. But I digress.
Since I was pretty fed up with my bank at that point, I reported their ad every time I saw it. Do you prefer just reporting an ad once?
BTW, I am going to change the Type of my original post from Bug to General.
Soren Madsen
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty
|
|
|
|