471,310 Members | 1,031 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

How to add line numbers to source code or text

Any one knows how to do this? I am using VC7.1 on .Net 1.1

Thanks

Dec 19 '05 #1
4 2281
Tools -> Options -> Text Editor -> All Languages -> Display:- Line
Numbers

Thats not in code though, just displays the line number in a column to
the left.

Steven Nagy

Dec 19 '05 #2


Steven Nagy wrote:
Tools -> Options -> Text Editor -> All Languages -> Display:- Line
Numbers

Thats not in code though, just displays the line number in a column to
the left.

Steven Nagy


Sorry, should have made myself more clear. I am writing a source code
editor, and I want to know how to extend (possibly a RichText control),
or maybe build a user control that allows me to display line numbers for
the lines of code that has been loaded into the RichText control.

Hopefully, sonmeone may have written this (or something similar) before
- or come accross something similar - and this will help me avoid
re-inventing the wheel.

Dec 19 '05 #3
Susan Baker wrote:


Steven Nagy wrote:
Tools -> Options -> Text Editor -> All Languages -> Display:- Line
Numbers

Thats not in code though, just displays the line number in a column to
the left.

Steven Nagy


Sorry, should have made myself more clear. I am writing a source code
editor, and I want to know how to extend (possibly a RichText control),
or maybe build a user control that allows me to display line numbers for
the lines of code that has been loaded into the RichText control.

Hopefully, sonmeone may have written this (or something similar) before
- or come accross something similar - and this will help me avoid
re-inventing the wheel.


I wouldn't recommend you to re-invent a wheel - look at
ICSharpCode.TextEditor class from developers of SharpBuilder. This class
is provided free of charge with full source code. It supports code
highlightning, intellisence and many other sweet goodies.

I use it for my SQL script editor app.
You can start from here:
http://www.icsharpcode.net/Opensourc...?TOPIC_ID=7791

Hope it helps,
MuZZy
Dec 19 '05 #4
Hi,

"Susan Baker" <sb****@no.spam.net> wrote in message
news:do**********@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com...
Any one knows how to do this? I am using VC7.1 on .Net 1.1


Just remember that this is a C# group, not devoted to VC ++

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Dec 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

23 posts views Thread by FrancisC | last post: by
3 posts views Thread by Jan E Andersen | last post: by
11 posts views Thread by Leon | last post: by
4 posts views Thread by J L | last post: by
4 posts views Thread by Water Cooler v2 | last post: by
4 posts views Thread by Ravi, Dallas, Texas | last post: by
53 posts views Thread by Gianni Mariani | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.