Sign in to follow this  
BTownTKD

Visual Studio "page lines" possible?

Recommended Posts

BTownTKD    205
Is it possible to print a vertical dotted line down the side of the editor window in VC++ 2005, at the point where a line of code would wrap around to the next line if printed on paper? Not a big deal, but it would be really convenient. Thanks in advance.

Share this post


Link to post
Share on other sites
CTar    1134
To get a line you can go to:
HKEY_CURRENT_USER/Software/Microsoft/VisualStudio/8.0/Text Editor
Here you create a new value with the type REG_SZ (string). In this format:
RGB(0-255,0-255,0-255) 0-INF
The last number is position. So for a red (not 255 red, only 128) one at the 100th col we would have:
RGB(128,0,0) 100
You should call this value "Guides".
EDIT: If you want more than one line just add numbers, for example if we wanted 5 lines at 20, 40, 60, 80 and 100 we would write:
RGB(128,0,0) 20 40 60 80 100
AFAIK you can't assign a color to each line.

Share this post


Link to post
Share on other sites
BTownTKD    205
Wow; that's quite a hack.

Thanks for the info; you'd think MS would think to add an option in the "view" menu lol.

Rate-ups for that one!

Share this post


Link to post
Share on other sites
raz0r    586
Quote:
Original post by Pharaoh12
WOW!Thats really useful. Can anyone tell me how to do this with Dev-C++, it would be really appreciated.

Thank You,
-Pharaoh12


If Dev-Cpp doesn't support this by default, you can write an application which will draw the vertical dotted-line for you in the Dev-Cpp IDE.

This shouldn't be more then a few lines using GDI.

Share this post


Link to post
Share on other sites
CTar    1134
Quote:
Original post by Pharaoh12
WOW!Thats really useful. Can anyone tell me how to do this with Dev-C++, it would be really appreciated.

Thank You,
-Pharaoh12


I just downloaded Dev-C++ 5 and you can enable such a line by going into Tools->Editor Options. You should now be in the "general" tab. Close to the lower right corner of the new window there is a little place called "Right margin" here you can enable the line, make sure to change the color to something else than the background of the editor.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this