Chat Box

Saturday, February 21, 2009

MASM Syntax Highlighting In Visual Studio

MASM syntax highlighting in Visual Studio

When a text editor uses syntax highlighting, language keywords, strings, and other elements appear in different colors. Visual Studio and Visual C++ Express can highlight MASM reserved words and strings, as shown in the following example:

This won't happen automatically, but you can create a syntax definition file named Usertype.dat that contains MASM keywords. Then when Visual Studio (or Visual C++ Express) starts, it reads the syntax file and highlights MASM keywords.

Here are the required steps to set up MASM syntax highlighting in Visual Studio or Visual C++ Express:

1) Download the Usertype.dat file given here to a folder in which you have read/write permissions. If you are using Windows Vista, download to My Documents, or C:\temp, or any folder that doesn't have security restrictions.

2) Copy Usertype.dat to the C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE folder. If you are using Windows Vista, it will display a verification window before copying the file.

3) Open Visual Studio or Visual C++ Express, select Options from the Tools menu, select Text Editor, and select File Extension. On the right side of the dialog (shown below), enter asm as the extension, select Microsoft Visual C++ from the Editor list, and click the Add button. Click the OK button to save your changes.

Close Visual Studio and restart it. Open your project and display an ASM file. You should see syntax highlighting in the editor.

5 comments:

Anonymous said...

Hi Folks,

Useful info this. However, the link to http://kipirvine.com/asm/files/usertype.dat is broken.

Can you fix it?

Graham.

Anonymous said...

These clubs provide a safe space for the LGBT students in their school, as well as an educational tool for the rest of the school to help better the climate and diminish harassment.
They demonstrate this by cutting off their "profit center" which is their nose.
It is quite too difficult to search a good dentist if you are staying in an urban city like Delhi.


Here is my web blog :: 3648;&

Anonymous said...

I'm extremely impressed with your writing abilities and also
with the layout for your weblog. Is this a paid theme or did you
modify it your self? Either way stay up the nice high quality writing, it's
rare to peer a great blog like this one these days..


Also visit my homepage - goji actives funciona

Anonymous said...

Hello, just wanted to tell you, I liked this blog post. It was practical.
Keep on posting!

my weblog - help in the bedroom

Anonymous said...

This may display that find you attractive and that other women you can be respected.
If you're like most folks, you're paying for your ISP. They are probably the most affordable form of shutters.


my blog :: http://spectraleyes.com/gallery2/main.php?g2_itemId=3474 (http://batchclipboard.olympe.in)

Post a Comment