| | |
adding line numbers?
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
![]() |
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
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
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:
cpp Syntax (Toggle Plain Text)
CODE GOES HERE
![]() |
Similar Threads
- adding numbers in tk (Python)
- JTextPane line number that is in view (Java)
- Adding binary values from a file (C++)
- adding numbers of binary output (C)
- Finding Perfect Numbers. "help plz" (C++)
- High School student need help for C++ on final project (C++)
- Command line calculator (C)
- adding totals in listboxes (Visual Basic 4 / 5 / 6)
Other Threads in the C++ Forum
- Previous Thread: from string to array + lowercase
- Next Thread: what's the difference
Views: 1183 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for C++
6 add api array arrays beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete desktop directshow dll encryption error file forms fstream function functions game getline givemetehcodez google graph homeworkhelper iamthwee ifstream input int integer java lazy lib linkedlist linux loop looping loops map math matrix memory microsoft newbie news node number output parameter pointer problem program programming project proxy python random read recursion recursive reference return sort string strings struct studio system template templates test text tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






