Re: how to change font color in Macro?
- From: Meera <mnair.lekshmi@xxxxxxxxx>
- Date: Tue, 07 Aug 2007 22:09:04 -0700
On Aug 7, 4:31 pm, "Ralph" <nt_consultin...@xxxxxxxxx> wrote:
"Meera" <mnair.leks...@xxxxxxxxx> wrote in message
news:1186483138.620668.109160@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
How to write a macro for the following purpose.
1.Search the lines start with "//*"in CSharp file .
2.Change font color of that lines.
I wrote the following code
Sub ChangeFontColor()
Dim props As EnvDTE.Properties
props = DTE.Properties("FontsAndColors", "TextEditor")
Dim prop As EnvDTE.FontsAndColorsItems =
props.Item("FontsAndColorsItems").Object
prop.Item("Comment").Foreground =
ColorTranslator.ToOle(System.Drawing.Color.HotPink)
End Sub
But all comments are changed to HotPink color.
I need only the comments starting with "//*"
Plz help me dear friends...
Wrong newsgroup and please don't multiple-post.- Hide quoted text -
- Show quoted text -
I use VB MAcro
.
- References:
- how to change font color in Macro?
- From: Meera
- Re: how to change font color in Macro?
- From: Ralph
- how to change font color in Macro?
- Prev by Date: Re: Instr()
- Next by Date: Re: Accessing enumerators in C# DLL from VB6
- Previous by thread: Re: how to change font color in Macro?
- Next by thread: Re: Changing the style - How?
- Index(es):
Relevant Pages
|