Article Submission Wizard fools me for the 10th time - data loss?!
-
I agree! until you start asking for a linenumber increment of 10. :) PS: do you want linecount="0" to mean off? or start at zero (and "-1" would then be off)? Of course, "on" could be interpreted as "1", and "off" as off.
Luc Pattyn [My Articles] Nil Volentibus Arduum
See Chris' suggestion below. I think this is what I need. My suggestion was more on the "hack" side ;-) .
-
See Chris' suggestion below. I think this is what I need. My suggestion was more on the "hack" side ;-) .
I saw that. I will upgrade my Using PRE tags on CodeProject tip if and when things get changed. :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
-
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
-
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
-
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
-
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 saw that. I will upgrade my Using PRE tags on CodeProject tip if and when things get changed. :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
Hello Luc, the feature is in use and works like a charm! See my latest tip update at the far end (in pending state though). Cheers Andi
-
Hello Luc, the feature is in use and works like a charm! See my latest tip update at the far end (in pending state though). Cheers Andi
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">
Graphics g=e.Graphics; g.FillRectangle((e.State&DrawItemState.Selected)==0?Brushes.White:Brushes.Yellow, e.Bounds); Brush brush=Brushes.Black;
and
<pre linecount="True" countincrement="10" countstart="30">
:Graphics g=e.Graphics; g.FillRectangle((e.State&DrawItemState.Selected)==0?Brushes.White:Brushes.Yellow, e.Bounds); Brush brush=Brushes.Black;
:(
Luc Pattyn [My Articles] Nil Volentibus Arduum
-
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
Luc Pattyn [My Articles] Nil Volentibus Arduum
-
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">
Graphics g=e.Graphics; g.FillRectangle((e.State&DrawItemState.Selected)==0?Brushes.White:Brushes.Yellow, e.Bounds); Brush brush=Brushes.Black;
and
<pre linecount="True" countincrement="10" countstart="30">
:Graphics g=e.Graphics; g.FillRectangle((e.State&DrawItemState.Selected)==0?Brushes.White:Brushes.Yellow, e.Bounds); Brush brush=Brushes.Black;
:(
Luc Pattyn [My Articles] Nil Volentibus Arduum
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 usecountincrement
. Andi -
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 usecountincrement
. AndiYou 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. :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
-
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
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