 |

|
Hi,
I tried to use the <pre> with linecount.
The intellisense does not show the linecount attribute of <pre> in c# in vs2010.
Whats the solution ??
How do i add the line count in aspx page and how do i show alternate row colors ?
Hoping to get some solution..
Happy coding.
Seetoronto
|
|
|
|

|
Useful for us (authors) =)
Thanks.
|
|
|
|

|
There is a new feature since a while:
<pre linecount="true" countstart="23">...<pre>
E.g.
<pre linecount="true" countstart="23">A
B
C
</pre>
results in
23 A
24 B
25 C
**** CAUTION: this only works if the first line of the content is on the same line as the <pre...> tag. ****
Likewise, one can give a step size for line numbering, e.g.
<pre linecount="true" countstart="100" countincrement="10">A
B
C
</pre>
results in
100 A
110 B
120 C
**** CAUTION: The countstart and countincrement set the mode globally. ****
I.e. the following results in lines 100,110,... again:
<pre linecount="true">A
B
C</pre>
This is since the former <pre...> tag has them set.
I find these two attributes very handy in articles where you refer to some code snippets from within the article.
Cheers
Andi
|
|
|
|

|
good stuff! I thought in hindsight that I was being a little harsh. looking at this morning's questions saw to that.
|
|
|
|

|
Reason for my vote of 3
sssss
|
|
|
|

|
Reason for my vote of 5
Great article. Please keep it up!
|
|
|
|

|
Reason for my vote of 5
good information about code formatting
|
|
|
|

|
Reason for my vote of 5
superb. we still need an article on "how to use a search engine before posting on CP"
|
|
|
|

|
Hello
My name is miss marry fred i am searching for a nice man like you who understand the meaning of love as trust and faith in each other rather than one who seems love as only a way of fun but a mattured one like you. i was going true google to search out some answer to a question which our pastor ask us in the Church before i saw your email
and i pick intrest in you, please reply to me so that i can send you my picture and i will also like to see your picture too, am waiting for your respond i love you with faith and trust. please reply me to my address
marryfred@yahoo.com
|
|
|
|

|
Reason for my vote of 5
A very useful article.
|
|
|
|

|
Reason for my vote of 5
Excellent!
|
|
|
|

|
The syntax highlighter may have changed since you posted this. Seems your sample of bold/italicize/underline isn't working for the underline. Also, you say "Encode < symbol while pasting"... seems you encode that less than a little too much. Should say "Encode < symbol while pasting" (actually, the forums say "Encode "<" (and other HTML) characters when pasting", and the QA section says "encode HTML characters", but the latter changes so often who knows what it will say next week).
|
|
|
|

|
Reason for my vote of 5
Excellent buddy, Thanks.
|
|
|
|

|
Thanks for sharing. Absolutely nice.
|
|
|
|
|

|
Luc, Brilliant pal. 5ing you!
|
|
|
|

|
Reason for my vote of 5
Thanks for sharing.
|
|
|
|

|
Reason for my vote of 5
Now it's more clear! Thanks for sharing!
|
|
|
|

|
Reason for my vote of 5
good to see some, well constructed "how to use, the site" instructions / tips
|
|
|
|

|
Thanks! This should be linked from CP submission guidelines.
Here's a list of lang="xxx" attributes for those who want to know:
| Value | Language |
| C++ | C++ |
| mc++ | Managed C++ |
| cs | C# |
| vb | VB.NET |
| vbscript | VBScript |
| jscript | Javascript |
| css | CSS |
| aspnet | ASP.NET |
| vbnet | VB.NET |
| SQL | SQL |
| midl | Microsoft IDL |
| asm | Assembly |
| msil | Microsoft Intermediate Language |
| xml | XML |
| html | html |
| text | plain (formatted) text |
|
|
|
|

|
Can't wait to try it.
------------------------------------
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 League Table Link
CCC Link[ ^]
|
|
|
|

|
I think
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|

|
For all practical purposes, HTML must be XML (XTHML), at least during writing.
Anyway, single quotation mark is nonsense! Must be "" always.
Sergey A Kryukov
|
|
|
|

|
smileys get interpreted again in PRE blocks...
|
|
|
|

|
Hi Luc - use the raw html view and paste/type it in as you would if you were actually writing html and it works OK
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|

|
Hi Luc,
I posted the CD Tray Locker thing as a Tip/Trick to test the system and the tags worked fine for me
Clickety[^]
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
 |