Bold, italic, underline...

This is a discussion on Bold, italic, underline... within the C++ Programming forums, part of the General Programming Boards category; I'm using microsoft visual c++ with windows XP, and I was wondering if there's a way to bold , underline ...

  1. #1
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,262

    Bold, italic, underline...

    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....

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    7,338
    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.

  3. #3
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,262
    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 ...

  4. #4
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398

    Lightbulb MSDN Console Reference?

    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.

  5. #5
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,074
    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 12:07 PM.
    Sent from my iPadŽ

  6. #6
    Super Moderater.
    Join Date
    Jan 2005
    Posts
    374
    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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Bold text in a list box
    By Mavix in forum C# Programming
    Replies: 2
    Last Post: 09-20-2007, 08:30 AM
  2. bold static text
    By Bleech in forum Windows Programming
    Replies: 10
    Last Post: 08-22-2007, 05:43 PM
  3. Removing the BOLD
    By geek@02 in forum Windows Programming
    Replies: 1
    Last Post: 11-10-2006, 05:05 AM
  4. Tree-view bold items
    By mobazr in forum Windows Programming
    Replies: 3
    Last Post: 03-14-2005, 07:45 AM
  5. How to make a word be bold styled?
    By zaestau in forum C++ Programming
    Replies: 4
    Last Post: 10-23-2003, 02:20 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21