How can I change the background color of the code window using an add-in?
I need to write add-in thats changes code background in code window.
Is there any samples how to do this?
I will very glad if somebody help me to do this.
Thank you.
I need to write add-in thats changes code background in code window.
Is there any samples how to do this?
I will very glad if somebody help me to do this.
Thank you.
Hi Zenit,
The following macro will change the editor background to Green using the DTE. You should be able to easily do this from an addin with some minor adjustments.
Thanks,
AaronM [MSFT]
Imports System Imports System.Drawing Imports System.Drawing.Color Imports EnvDTE Imports EnvDTE80 Public Module ColorTest |
Thank you, Yan.
Imports System Imports System.Drawing Imports System.Drawing.Color Imports EnvDTE Imports EnvDTE80 Public Module ColorTest |
You can of course hook something like this up to the various environment events to respond to user actions. If you are trying to something
more complicated, please let us know exactly what you're trying to accomplish. Are you looking to create a "highlighting" feature similar to Microsoft Word highlighting? Something else perhaps?Thanks,
Aaron
Hi, Aaron.
Yes. I mean highlighting.
User selects text and this text changes background. This background saves after selecting another fragment.
Can VSIP help with this problem.
Thank you.