how to get line number in code editor in vs2008? [duplicate] - visual-studio

This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
How do I enable line numbers in VS2008?
how to get line number in code editor in vs2008?

Tools...Options...Text Editor....All Languages... Display... Line Numbers.

go to tool>option>text editor check 'line number'

Related

Comment multiple lines in Xcode 9 [duplicate]

This question already has answers here:
Is there a shortcut to make a block comment in Xcode?
(21 answers)
Closed 5 years ago.
How can we comment multiple lines in Xcode 9. I know about Command + /
But This inserts // in front of every selected line.
But I want it like /*......*/
Xcode does not provide that type of comment (/* .. */) in shorthand in any version so nothg different in x-code 9 regarding this,
check this -> https://forums.developer.apple.com/thread/49473
So for code commenting do anyone of follow
cmd+/ is used for // the multiple lines,
For /* ... */ either you have to manually
can create code snipplet. No other option is available.
Code Snipplet

How to read a specific line data [duplicate]

This question already has answers here:
VBScript to read specific line and extract characters and store it as a variable
(2 answers)
How to delete the first row in the .csv file
(2 answers)
Closed 5 years ago.
I want to read a specific line from the text file using VBScript.
I have explored Read and ReadLine methods but I can't able to read only specific line from text file. (I have 1000 of line but I want to read only 99 or 200 or 500 line only)
The question may be similar to the questions those duplicate hunters pointed to, but the answers are - for different reasons - of no use. A good answer could be build from one answer to the completely different question here.
Now to the answer:
Use a .SkipLine loop to read to the line before you are interested in and get it using .ReadLine.

Commas in path - .NET [duplicate]

This question already has answers here:
Commas in WPF Pack URIs
(2 answers)
Closed 7 years ago.
I am working on some code that has paths that look like this:
"pack://application:,,,/FOO.Bar.Baz;component/Gorp/bazzle.xaml"
What do the 3 commas mean, and what is this path referencing?
Typically they are placeholders for parameters that were not supplied. It usually means ... "use the default values" for those parameters.

Calculate difference between list of numbers from a file [duplicate]

This question already has answers here:
Awk command - calculation of columns
(2 answers)
Closed 8 years ago.
I've a file with a list of numbers as below
37298.1
37304.1
37310.3
37316.5
37322.5
37328.7
I need to calculate the difference between each number in the list with respect to the previous one, as showed below:
6.0
6.2
6.2
6.0
6.2
awk 'p{print $0-p}{p=$0}' file

Is it possible to omit the processing instruction from an XML document using Nokogiri::XML::Builder [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Print an XML document without the XML header line at the top
I'm trying to create a fragment of XML using the Nokogiri::XML::Builder but I can't find any documentation on how to exclude the processing instruction (<?xml version=...)
Can anyone point me in the right direction?
Now I can answer:
doc.to_xml :save_with => Nokogiri::XML::Node::SaveOptions::NO_DECLARATION

Resources