Questions tagged [line-numbers]

The line number (position) of a line of text or code inside a file, often for debugging.

369 questions
-1
votes
2 answers

How to append line numbers to the beginning of every line in a multi-line textbox every time the "ENTER" key is pressed?

i went through these , but they didn't help me in my situation this doesn't work in my case because it it contains KeyData or KeyCode methods in answers which shows error when i try to run. How to add number in each new line in a multiline textbox…
Dyary
  • 753
  • 7
  • 14
-1
votes
1 answer

How to reset the count number of lines in each file using PHP

I have a PHP code that reads multiple txt files and search for user request for a word if the word exist the code will display the the requested word with the line number and the file name. the code work perfect but the problem is in the line…
Rany Fahed
  • 39
  • 3
  • 11
-1
votes
1 answer

How to show line number on side right QPlainTextEdit in Qt

I am just learning Qt. I want to show line number of QPlainTextEdit. I found this link http://doc.qt.io/qt-5/qtwidgets-widgets-codeeditor-example.html and it worked. But now I want QPlainTextEdit to show line number with other controls on the form…
Temp Tam
  • 21
  • 5
-1
votes
1 answer

how do you show line numbers in Oracle isql plus?

Could someone tell me if you can show line numbers in isql plus? I can't see the correspondence between its error reporting and the actual line count. Many Thanks.
user1763170
  • 119
  • 1
  • 2
  • 13
-1
votes
2 answers

Vim how to remove line number on copy

When I copy lines with vim on my ssh term I always have the line number: 1
ChoiZ
  • 747
  • 1
  • 5
  • 23
-2
votes
1 answer

javascript switch statement fails to return correct values

This is part of a program to plot points (generated elsewhere) on a rectangular grid. If the point falls outside the grid (either index < 0, or index > grid_length), then the index is amended to place it within the grid. I have done it 3…
blob
  • 21
  • 6
-2
votes
4 answers

Extracting line number of a txt file in Python

I want to know if there is a way to find the line number of a line in a text file, using Python. So, for example, if we have the file textfile.txt: abc deff ghi jkl EOF Then I'd like a function like func(FILE,TEXT), that would work in the following…
-2
votes
1 answer

How to get the current function's name or linenumbers in V8

I want to dynamically hook the information about the current executing function in V8. For example the function name, line number, or file name, etc. Is it possible for V8 to set some breakpoints to get this information when the page or app is…
wangrl
  • 5
  • 5
-3
votes
3 answers

How to extract exact lines of text from a text file using line numbers in java?

How to extract exact lines of text from a text file using line numbers in JAVA? For example i have a 1000 lines in a example.txt file from which i want to extract line numbers 100 - 150 to another report.txt file.
sisir
  • 111
  • 2
  • 13
1 2 3
24
25