Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 1533:The color can't work well in assembly
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

XChicken
Junior Member

China
11 Posts

Posted - Aug 27 2006 :  9:47:47 PM  Show Profile  Reply with Quote
eg:
if (GetOpenFileName(&ofn) != FALSE )
{

__asm
{
pushad
lea esi, EXE
push esi
push esi
call dword ptr lstrlen
add esi, eax
pop eax
dec esi
redo:
cmp byte ptr [esi], 0x5C
je ok
dec esi
jmp redo
ok:
SUB ESI, EAX
MOV ECX, ESI
inc ecx
lea edi, lpDirectory
lea esi, EXE
rep movsb
xor eax,eax
stosb
popad
}
If I embedded a assembly code section in VC,the color of this section can't work very well,maybe ur guys could make it better ^o^

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Aug 28 2006 :  11:21:42 AM  Show Profile  Reply with Quote
it is unlikely we will ever try to offer enhanced syntax highlighting for inline assembly, but you can tell the IDE that you want certain words coloured as keywords. you simply have to add them to the "usertype.dat" file

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxtskDefiningKeywordsInVisualC.asp

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000