|
Andreas Gieriet wrote: and works like a charm
Not really. It may be OK in tips&tricks, it has at least one bug in forum messages: countincrement seems to work, countstart doesn't.
example using <pre linecount="True" countstart="30">
30 Graphics g=e.Graphics;
31 g.FillRectangle((e.State&DrawItemState.Selected)==0?Brushes.White:Brushes.Yellow, e.Bounds);
32 Brush brush=Brushes.Black;
and <pre linecount="True" countincrement="10" countstart="30"> :
30 Graphics g=e.Graphics;
40 g.FillRectangle((e.State&DrawItemState.Selected)==0?Brushes.White:Brushes.Yellow, e.Bounds);
50 Brush brush=Brushes.Black;
|
|
|
|
|
I could achieve my goal, i.e. it worked for me.
After tweeking a bit with countstart I think I found that it only works if the <pre... tag is on the same line as the first code line. Otherwise, the count starts at 1.
I did not use countincrement .
Andi
|
|
|
|
|
You may be correct, but then it wouldn't make much sense that countstart has a positional requirements, whereas linecount and countincrement don't.
And yes, I tend to put the PRE tags on separate lines, as it preserves vertical alignment of the code.
|
|
|
|
|
I'd prefer
<pre lang="cs" linecount="true" countstart="10" countincrement="10">...</pre>
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
Looks perfect - my suggestion was not so well thought through.
Cheers
Andi
|
|
|
|
|
This has been done. I'm doing a code deploy tonight (assuming final testing).
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
Hey, that's quick!
Any test support needed?
Cheers
Andi
|
|
|
|
|
Sorry for the delay but our tewting showed some errors the day I wanted to deploy, and we've only just had a chance to redeploy. The feature is now in place so go for it.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
Hello Chris,
works like a charm! See my latest tip update, at the far end (at the moment, the tip is in pending state though).
Thanks again, it's very useful!
Cheers
Andi
|
|
|
|
|
|
I can confirm that the following works:
<pre lang="html" countlines="true" countstart="123" countincrement="17">a
b
c</pre>
Count starts at 123 and increments by 17.
Where as the following does not work:
<pre lang="html" countlines="true" countstart="123" countincrement="17">
a
b
c</pre>
Count starts at 17 and increments by 17.
This does neither work:
<pre lang="html" countlines="true" countstart="123">
a
b
c</pre>
Count starts at 1 and increments by 1.
Conclusion:
If the first "code line" of the <pre... is on the same line as the tag, countstart works correctly, otherwise it's not working correctly.
Cheers
Andi
|
|
|
|
|
I just got two 24 points listed in the My Messages page and I went from 40.5K to 40.6K. Assuming K means a thousand, how does that get counted?
|
|
|
|
|
You must have gone from less than 40,549 to greater than 40,459 points.
The value shown is cached, meaning you can get jumps between sessions (or page views)
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
Chris Maunder wrote: You must have gone from less than 40,549 to greater than 40,459 points.
Must be the new math.
Chris Maunder wrote: The value shown is cached, meaning you can get jumps between sessions (or page
views)
I'll keep my eye on it. If I go to 40.7K in less than 500 points then it has to be a bug.
|
|
|
|
|
I was approximating
(Sorry - I really need some sleep, but I'm assuming you got the gist. Or maybe I just confused you more.)
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
No I got it, but I have seen my rep jump when only a few new points were added. Unless of course I need some sleep too.
|
|
|
|
|
Unlike Chris, I can explain with mathematics you can understand.
You were on 40549 and went to 40550 (within a 48 point range).
---------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
English League Tables - Live
|
|
|
|
|
I have changed my logon email.
But now I don't recieve my daily newsletter anymore not on any of my emails.
What did I do wrong ?
I need my daily newsletter
Regards,
Steven
|
|
|
|
|
Hi Steven,
Looking at your account I think next week you should receive it just fine. I have sent you this week's in the interim, please let me know if you received it OK (and next week if something goes wrong, please send me an email as well and we will investigate further).
Thanks,
Sean Ewington
The Code Project
|
|
|
|
|
Apologies for not following up sooner, but your account's new email had not been confirmed, so I requested a new confirmation email be sent to you, and it looks like your account is now all good. Tomorrow morning your fix should arrive.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
The best part of the fix are the sarcastic oneliners
|
|
|
|
|
When I click "Bookmark" on a Lounge post, the link text becomes "Forum Message is already bookmarked", which is fine and dandy, but it is still a link. It should probably become plain text at that point. Or maybe say "Click To Remove Bookmark".
Also, "Forum Message is already bookmarked" is inconsistent casing. Should probably be "Forum Message is Already Bookmarked".
|
|
|
|
|
i post a problem in my code and till now i didn't find any help for my problem
|
|
|
|
|
At the top of the page right now, I see "8,598,869 members and growing! (56,536 online)". I suspect the site administrators have better things to do than to help you with your coding problem.
This forum (Site Bugs / Suggestions) is meant for issues that have to do with codeproject.com, not code problems you happen to have posted on codeproject.com.
|
|
|
|
|
Is this the "no help" where the answer was given to you two days ago?
Panic, Chaos, Destruction. My work here is done.
Drink. Get drunk. Fall over - P O'H
OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre
I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer
Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett
|
|
|
|