I'm using microsoft visual c++ with windows XP, and I was wondering if there's a way to bold, underline and itlaic words and strings of words on the compiler....
I'm using microsoft visual c++ with windows XP, and I was wondering if there's a way to bold, underline and itlaic words and strings of words on the compiler....
Depends on which version you are using. In VC++ 2003 (7.1), under Tools->Options Environment->Fonts and Colors you can set certain text to bold, but I don't see any options for underline or italic. You can also change the color and fonts. Other versions probably have similar options under Tools->Options.
whoops ... I wasn't being specific enough, I meant in the program its self, like we'll say I run my program and I print stuff to the screen, I want to be able to bold and whatnot what's written in the program ...
Assuming you're writing a console application (not a Windows GUi application), you'll probably find the answer in the MSDN Console Reference
It may take soem time to find what you're looking for on MSDN... I did a quick search, and I found some stuff on color and underscore, but I didn't see anything about the other font attributes.
http://www.adrianxw.dk/SoftwareSite/index.html
Start reading up on Windows Consoles. I'm not sure if he goes over underlining and bolding specifically, but he does give excellent explaination on he SetConsoleTextAttribute() function. That may or may not be able to do what you're asking, you'd have to ask AdrianXW.
On a side note, it's not that you weren't being specific enough, it's that you just didn't say what you meant at all. "Words on the compiler" is not "Words in the program" and as I'm sure Daved knows it's not "Words on the IDE" either, but I probably would have assumed that's what you meant, as well. Terminology is oh so important in the world of programming. If you don't know it you can get bad information.
Last edited by SlyMaelstrom; 12-09-2005 at 01:07 PM.
Sent from my iPadŽ
Another option would be to open the file as a html.
It's easy to format words in html.
<b>hello</b> -->make it bold
<i>hello </i> -->italic
<u>hello</u> -->underline