adding line numbers?

Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Sep 2007
Posts: 47
Reputation: teppuus is an unknown quantity at this point 
Solved Threads: 0
teppuus's Avatar
teppuus teppuus is offline Offline
Light Poster

adding line numbers?

 
0
  #1
Jan 20th, 2008
Hello,

I wanted to post some code with line numbers and can't figure out how to do this. I searched the FAQ, and tried[list=1], but it didn't turn out right. I would hate to manually insert line numbers in my code. Can anybody help or point me in the right direction so that I can probably post my code?

Thank you!
Terri
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 1,873
Reputation: twomers has a spectacular aura about twomers has a spectacular aura about twomers has a spectacular aura about 
Solved Threads: 56
twomers's Avatar
twomers twomers is offline Offline
Posting Virtuoso

Re: adding line numbers?

 
0
  #2
Jan 20th, 2008
Wrap your code in code tags [code][/code], but put in a language specifier, like so: [code=c]CODE GOES HERE[/code] or [code=cpp]CODE GOES HERE[/code]. The latter gives:
  1. CODE GOES HERE
I blag!?
"Mr Kitty, you have to live in the attic now. Here, write a diary."
I am the Walrus!
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 47
Reputation: teppuus is an unknown quantity at this point 
Solved Threads: 0
teppuus's Avatar
teppuus teppuus is offline Offline
Light Poster

Re: adding line numbers?

 
0
  #3
Jan 20th, 2008
Thank you! I will try that.

Terri
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 1183 | Replies: 2
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC