While copying a code snippet from some sites and pdf,docs line numbers are also getting copied.I have to omit those line numbers in my text editor manually always. Any better way so that line numbers won't be copied?
sash_kp
0
Newbie Poster
Recommended Answers
Jump to PostWhen I copy code from DaniWeb, linenumbers never get copied.
Jump to PostYou could write a simple Java program to read a text file, delete any leading integers and write it back out. 15 minutes tops.
All 6 Replies
ddanbe
2,724
Professional Procrastinator
Featured Poster
sash_kp
commented:
I see. But while copying from some pdfs,docs this problem arises. However i got a solution for that. Thanks ":)"
+0
stultuske
1,116
Posting Maven
Featured Poster
sash_kp
commented:
I was just talking about copying and pasting the code snippets. .jar file for these are not available usually!
+0
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
sash_kp
commented:
This would be a peculiar way for doing this. However i found a nice and simple way. In sublime text2 using macros i am able to get this thing done easily. Btw thanks for your support.
+0
sash_kp
0
Newbie Poster
stultuske
1,116
Posting Maven
Featured Poster
sash_kp
commented:
Well Official sites and legally bought ebooks are not meant for copying and pasting stuffs. My question was very simple. Copying the code snippet and Paste in text editor to verify it works or not. No .jar file,no .java file nothing. Just copying,and whil
+0
ddanbe
2,724
Professional Procrastinator
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.