Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / July 2004

Tip: Looking for answers? Try searching our database.

How to tell core editor to color specific lines?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Prashant Deva - 30 Jun 2004 22:00 GMT
The VSIP docs say that in a language service(NOT using babel)  ,"The core
editor calls IVsColorizer::ColorizeLine to request that a particular span of
text be colorized."

But the problem comes when the change of 1 character in a single line can
affect the color of many lines.

How do i tell the editor, to paint the specific lines i want it to?

Eg- comments. If i put '/*' at the begining of a line,how do i tell
the editor to change the color of rest of the lines to say, green?

Its  strange how the VSIP docs dont give any info about such a major thing.

PRASHANT
Dmitry Shaporenkov - 01 Jul 2004 08:16 GMT
Prashant,

I suspect you can use text markers for what you're trying to do. Take a look
at
IVsTextStreamMarker interface and related APIs.

> The VSIP docs say that in a language service(NOT using babel)  ,"The core
> editor calls IVsColorizer::ColorizeLine to request that a particular span of
[quoted text clipped - 11 lines]
>
> PRASHANT
"Ed Dore [MSFT]" - 08 Jul 2004 23:36 GMT
To follow up on Dmitry's response. The documentation for implementing
custom markers, is pretty much non-existant. Though the doc team is working
to fix this for the Whidbey VSIP docs. There are some details in the Dr. Ex
blog at http://blogs.msdn.com/dr._ex/  which contains some of the missing
information.

I have a rudimentary implementation in C#, and will hopefully get it
finished and uploaded to the VS extensibility site in the not to distant
future. In the meantime, if you'd like a copy (it's still a work in
progress), just email me (minus the "online."), and I'd be more than happy
to provide you with what I've pulled together so far.

Sincerely,
Ed Dore [MSFT]

This post is 'AS IS' with no warranties, and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.