|
Not sure what brought this on, unless I completely misunderstood.
Outside PRE and CODE tags, HTML tends to eat all spaces (and tabs) except one, always has, always will. I've never seen a browser handling that any different. That is one reason why I suggest to put tabular data (and not just code) inside PRE tags (the non-prop font being another reason).
[ADDED] The non-breaking spaces ( ) don't get aggregated, one could use them to tabulate/indent some text also, however I still recommend PRE tags! [/ADDED]
modified 14-Nov-11 9:37am.
|
|
|
|
|
Thanks for the advice, Luc; I was operating as if there was a WYSIWYG relation between functionality in the editor, and the final formatted message, but that there isn't ... quite, in some cases ... in no way rocks my boat.
I regularly use a forum (non-technical) where pasted in tabs work, and leading spaces work in the sense of: if they appear in the editor, they appear in the final message. Of course it's unfair to compare that editor's limited functionality with the range of options the CP editor must support !
I will adjust my expectations, and try out pre tags as you suggest in those rare cases I want to indent some plain-text.
best, Bill
"I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone." Bjarne Stroustrop circa 1990
|
|
|
|
|
You're welcome.
I forgot to mention there is one exception in the CP editor: it does preserve paragraphs, so us entering a newline gets translated in whatever it takes to get a new paragraph in HTML.
BTW: IMO not treating spaces/tabs any special by CP is OK as it supports a fluid behavior, where paragraphs format themselves depending on the width of your browser window (except inside PRE tags).
|
|
|
|
|
The reason is that when you post a message you are actually posting in HTML, not plain text, and in HTML multiple spaces are collapsed down to a single space.
You can always try checking the box "Treat my content as plain text, not as HTML" which will then format as plain text and preserve spaces and indenting.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
Thanks, Chris,
Unfortunately checking that box for plain text is applied globally to the entire message, thus removing any use of the CP's editor's wealth of functionality.
No big deal, will experiment with non-breaking spaces:
For example your Extension Methods might include:
IsNull
IsNotNull
NumberOfIdenticalValues
Fine, works great.
I wonder if "convert tabs to spaces" used on what's chosen by the user of the editor as plain text on insertion might be modified to replace tabs with non-breaking-space character HTML code ? For text not inside 'pre' tags ?
best, Bill
"I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone." Bjarne Stroustrop circa 1990
|
|
|
|
|
Most excellent !
best, Bill
"I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone." Bjarne Stroustrop circa 1990
|
|
|
|
|
Why did you guys take out the number of views? That was just one change that broke CPAM.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
Sorry about that - fixed.
It seems an aribtrary change but we have been doing some serious refactoring as we work to implement a new system for editing articles. It's a fundamental re-think of the editing workflow which should make life a lot easier for a lot of authors.
My apologies that this one slipped through the cracks.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
No worries. When you turned view counts back on, CPAM clicked into place (after the other changes I had to make) and everybody's happy now.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
I thought I'd mention that the views count is also missing from tips/tricks, and no doubt from blog entries. I don't have any blog entries, so I can't verify it with my own data, but it would be worth verifying that the views count is either still there or restored if it isn't.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
Tips have never shown a view count because views for tips and alternatives aren't as well defined. IF you view a tip you also get the alternatives shown, but are they actually "viewed". As well, if you click a link to an alternative you are taken to the point on the page for the alt, so does that mean the original is also viewed?
We're redoing this to make it more cut and dried.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
The views count in the articles by the author has disappeared.
Its the man, not the machine - Chuck Yeager
If at first you don't succeed... get a better publicist
If the final destination is death, then we should enjoy every second of the journey.
|
|
|
|
|
I can still see them.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Nope, still not there.
http://www.codeproject.com/Articles/Mehdi-Gholam[^]
Its the man, not the machine - Chuck Yeager
If at first you don't succeed... get a better publicist
If the final destination is death, then we should enjoy every second of the journey.
|
|
|
|
|
Apologies, I misread your original message and looked in the wrong place.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
I came across this question on QA today[^], and recalled some of the very interesting progress reports and discussions of GDI+ issues that JSOP posted ... I don't think I hallucinated them ... which I hoped to refer the questioner to.
Just spent ten-minutes looking through JSOP's vast and excellent contributions in articles, tips/tricks, even Forum messages, and can't find a thing.
Is this content gone ?
thanks, Bill
"I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone." Bjarne Stroustrop circa 1990
|
|
|
|
|
I don't think so, here is one camo thread[^], which could give you a timing reference.
|
|
|
|
|
I released the app:
Here's the CamoPicker web site[^]
Shortly after releasing the app, I was attempting to add new functionality and realized that the app need to be heavily refactored in order to implement that new code (and to make it presentable to other programmers here in the form of an article), so I started refactoring. Just as I was starting that process, we started the process of moving to a new house. That was back near the end of October. I was actually thinking about posting another thread in the Lounge about the refactoring process, but I figured everyone was more interested in inane drivel about Leslie Nielsen and bacon than real developers talking about what they've been up to.
This week, I finally got to a point where I could continue the refactoring process, and wouldn't you know it - Chris made a change to Codeprojects My Articles page that significantly impaired the functionality of CPAM, so I've spent the last couple of hours trying to work out what changed. Among the changes I've had to make:
0) They changed the ctrl ID of the MainArticleSpan elements. Silly me - I was using those to identify the tags I neeeded to find.
1) There was a minor programming error regarding the cleaning of the data, where I am stripping html tags and various non-printable characters and delimiters from an element's inner text.
2) This is a biggie - the number of views has been omitted from the article details. Accidental? Intentional? Who knows, but CPAM is displaying 0 views for all the articles.
At this point, I'm of the mind to just wash my hands of the whole thing because I can't see any point in chasing the whims of the CP developers where the data is concerned, and the promised web service is still missing in action. I certainly have more interesting things to do.
I guess the CPAM thing has me a bit perturbed... annoyed... and even kinda pissed off, but mostly because I had to drop everything else to see why it doesn't work any more.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
Hear hear.
|
|
|
|
|
To find the camopicker lounge posts, just do a search in the lounge for camopicker. You should be able to find all/most of the related threads that way.
Q/A question links:
Bitmap Alpha Blurring[^]
GDI+ Question - Scaling/Redrawing[^]
More GDI+ fun - moving a scaled/rotated image[^]
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997
|
|
|
|
|
Thanks, John, for unknown reasons (early Alzheimer's ?) I could not remember the name 'CamoPicker,' but I did search at length from your profile, and on your name in the general search facility: perhaps did not go back far enough.
I'll review your comments (which I am going to bookmark for future reference) to see if they might help the OP on QA if their question is not yet answered.
best, Bill
"I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone." Bjarne Stroustrop circa 1990
|
|
|
|
|
When I try to logon to CodeProject from my Windows Machine I get the error message "Information for 'what I thought was my email address' not found (make sure you enter your email address, not your username)"
As I am loged in on my Android tablet and can view my proofie there appears to be no problem with my account. I tried both IE and Opera so it doesn't appear to be a browser issue.
Can you please look into this and let me know how I can overcome it.
Thank you
modified 11-Nov-11 19:47pm.
|
|
|
|
|
Take a look at the email address in your profile. That's the address you need to use for logging in.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
Ooops - After 8 years I just try to login out of memory. Unfortunately at my age my short term memory is not what it used to be.
I forgot I changed the email address.
|
|
|
|
|
Can we have a poppy for Bob please.
|
|
|
|