Yes, of course, this is possible for C ++ files and files that Visual Studio recognizes; therefore, if VS is configured to recognize your HTML as a C ++ file, you should be fine.
You will need to create a usertype.dat file and put it in your
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE
(or equivalent for VS2010, this is for VS2008)
, ;
; Qt, usertype.dat:
signal
slots
Q_OBJECT
( ..)
VS, .
.