Click here to Skip to main content
16,005,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralShifting Text in Visual C++ Text Editor Pin
K. Shaffer2-Feb-05 6:13
K. Shaffer2-Feb-05 6:13 
GeneralRe: Shifting Text in Visual C++ Text Editor Pin
bluerider2-Feb-05 6:35
bluerider2-Feb-05 6:35 
GeneralRe: Shifting Text in Visual C++ Text Editor Pin
K. Shaffer2-Feb-05 7:30
K. Shaffer2-Feb-05 7:30 
GeneralRe: Shifting Text in Visual C++ Text Editor Pin
alex.barylski2-Feb-05 11:27
alex.barylski2-Feb-05 11:27 
GeneralRe: Shifting Text in Visual C++ Text Editor Pin
Ryan Binns2-Feb-05 17:30
Ryan Binns2-Feb-05 17:30 
GeneralRe: Shifting Text in Visual C++ Text Editor Pin
alex.barylski6-Feb-05 11:10
alex.barylski6-Feb-05 11:10 
GeneralWanted: VS colorer add-in sources Pin
yuri_g2-Feb-05 4:41
yuri_g2-Feb-05 4:41 
GeneralRe: Wanted: VS colorer add-in sources Pin
S Douglas2-Feb-05 19:09
professionalS Douglas2-Feb-05 19:09 
yuri_g wrote:
I try to find sources of any (even the simplest) source colorer add-in for Visual Studio 6.0. Have anybody got samples/links?
Thanks!


Although I don’t think this is exactly what you’re looking for, but VS does offer some basic syntax highlighting beyond the default. I ran across this file quite some time ago.

Create a file called UserType.DAT, place it in C:\Program Files\Microsoft Visual Studio\MSDev98\Bin\

Paste the following text into that file. The text with "%" in front is from the orginal file I found some where on the internet.

%%% steve's datatypes; can be merged with scott wingo's MFC set.
%%% cut and pasted from various win32 header files on a "demand" basis
BOOL
WORD
uint16
uint32
INT
UINT
BYTE
HWND
DWORD
UINT
LONG
VOID
FAR
CONST
PASCAL
CDECL
WINAPI
CALLBACK
WPARAM
LPARAM
LRESULT
PSTR
LPSTR
LPTSTR
LPCSTR
LPCTSTR
PBYTE
LPBYTE
PINT
LPINT
PWORD
LPWORD
PLONG
LPLONG
PDWORD
LPDWORD
LPVOID
LPCVOID
ULONG
USHORT
UCHAR
HANDLE
PHANDLE
SPHANDLE
LPHANDLE
HGLOBAL
HLOCAL
GLOBALHANDLE
LOCALHANDLE
ATOM
FARPROC
NEARPROC
HINSTANCE
HTASK
HGLOBAL
HMODULE
COLORREF
HPALETTE
HPEN
HRGN
HWINSTA
HMENU
HICON
HDESK
HENHMETAFILE
HDC
HCOLORSPACE
HBRUSH
HACCEL
HBITMAP
HCURSOR
HFILE
RECT
LPRECT
LPCRECT
POINT
LPPOINT
SIZE
LPSIZE
WCHAR
LONGLONG
LARGE_INTEGER
ULARGE_INTEGER
GUID

NULL
FALSE
TRUE
INVALID_HANDLE_VALUE
SECURITY_ATTRIBUTES
LPSECURITY_ATTRIBUTES
CRITICAL_SECTION
INVALID_HANDLE_VALUE
HRESULT
SCODE
WAIT_OBJECT_0
WAIT_ABANDONED
WAIT_FAILED
WAIT_TIMEOUT
OVERLAPPED
FILETIME

%%%Borland C++ and Visual C++ have long supported extensible keywords. Below is a data file which contains some of the commonly used Win32 datatypes. This makes is easier to recognise mistyped values without having to wait for the compiler to tell you off.


%%%Download the file and place it in the BIN directory of the IDE. Then restart MSDEV and enjoy more color coded text. Note that a lot of the Win32 data types are still missing -this set covers the ones we commonly use. But it's a start -on a big project adding in your own classes is the next big step.

%%%Scott "MFC FAQ" Wingo has a usertype.dat file which covers many C++ classes: if you merge that one with ours then you get the best of both worlds. However, this file seems to have dropped off the web site and isn't in the Program VC++ 5th edition CD either. Someone will have to do a new version of the file




Social Engineering Specialist.

Because there is no patch for human stupidity.
GeneralBinary Files Pin
mcsherry2-Feb-05 3:54
mcsherry2-Feb-05 3:54 
GeneralRe: Binary Files Pin
David Crow2-Feb-05 5:37
David Crow2-Feb-05 5:37 
GeneralRe: Binary Files Pin
mcsherry3-Feb-05 5:01
mcsherry3-Feb-05 5:01 
QuestionFind location of program. Check registry? Pin
ChemmieBro2-Feb-05 3:03
ChemmieBro2-Feb-05 3:03 
AnswerRe: Find location of program. Check registry? Pin
David Crow2-Feb-05 3:18
David Crow2-Feb-05 3:18 
GeneralRe: Find location of program. Check registry? Pin
ChemmieBro2-Feb-05 3:25
ChemmieBro2-Feb-05 3:25 
GeneralRe: Find location of program. Check registry? Pin
David Crow2-Feb-05 3:35
David Crow2-Feb-05 3:35 
GeneralWant to capture Event from MS Web browser (shdocvw.dll) Pin
Jetli Jerry2-Feb-05 2:54
Jetli Jerry2-Feb-05 2:54 
General"Open Directory" window Pin
TheCult2-Feb-05 2:31
TheCult2-Feb-05 2:31 
GeneralRe: "Open Directory" window Pin
David Crow2-Feb-05 2:37
David Crow2-Feb-05 2:37 
GeneralRe: "Open Directory" window Pin
TheCult2-Feb-05 2:44
TheCult2-Feb-05 2:44 
GeneralToolbar Peformance Problem Pin
Jnewg52-Feb-05 2:04
Jnewg52-Feb-05 2:04 
GeneralToolbar... help needed Pin
Feroz R2-Feb-05 1:19
Feroz R2-Feb-05 1:19 
GeneralUnicode Support Pin
Feroz R2-Feb-05 1:17
Feroz R2-Feb-05 1:17 
GeneralRe: Unicode Support Pin
David Crow2-Feb-05 2:29
David Crow2-Feb-05 2:29 
GeneralRe: Unicode Support Pin
PJ Arends2-Feb-05 4:52
professionalPJ Arends2-Feb-05 4:52 
Generalbitmap Pin
stew9ln1-Feb-05 23:34
stew9ln1-Feb-05 23:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.