Hi
Is there a way to print out line numbers with the code (i.e. number each line of code)? Or even better export it to word with line numbers?
(In MS Visual C++ 6.0)
Thanks
Printable View
Hi
Is there a way to print out line numbers with the code (i.e. number each line of code)? Or even better export it to word with line numbers?
(In MS Visual C++ 6.0)
Thanks
There are text editors that use that.
Would you care to mention any good one? :)
Actually, do you know of one that can save the line numbers with the code as well in text?
Why would you want to save the line numbers with the code?
echo that, any editor worth it's salt just lists what number it is (www.textpad.com is a good one). You don't have to save the numbers for any reason.
in VC++ 7:
Tools > Options > Editor > C++ > Line Numbers
But you won't be able to copy line numbers with your code, so if you want to add your code to a word doc with line numbers, why not write a program for it, it would be extremely easy, read the file line by line, add line number, and print it to another file.