Skip to content

Instantly share code, notes, and snippets.

@DominicFinn
Created May 9, 2012 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DominicFinn/2643950 to your computer and use it in GitHub Desktop.
Save DominicFinn/2643950 to your computer and use it in GitHub Desktop.
Vs Macro
Imports System
Imports EnvDTE
Imports EnvDTE80
Imports EnvDTE90
Imports EnvDTE90a
Imports EnvDTE100
Imports System.Diagnostics
Public Class Macros
Sub SurroundWithKeywordTag()
DTE.ActiveDocument.Selection.Text = "<span class=""keyword"">" + StrConv(DTE.ActiveDocument.Selection.Text, VbStrConv.ProperCase)
End Sub
End Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment