Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    anyway to style g++ output?

    Hi i'm new to C++ programming and am still getting used to linux cmd prompt. I don't mind using the prompt, but i was thinking it would be nice if i could customize the colors for different output of gcc, g++ etc. That way i could have line #'s in one color, or filename of error in another color, and look things up quicker.

    Anyone know if this is possible, or how it may be done?

    If i could just create a custom stylesheet like for a web browser that would be sweet, but any way i could modify the output style would be helpful.

    Thanks lots,

  2. #2
    Linux Newbie
    Join Date
    Sep 2005
    Wahiawa, Hawaii

    g++ o/p

    I use kate for most of the C== I do. It makes all the colors in the program. As far as compiling and having a color output I am unsure.
    GNU/Linux is a powerful Free OS. Fear is a powerful motivator. Freedom is sweet. Fear GNU/Linux. Savor Freedom.

  3. #3
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    St. Petersburg, FL
    Do you mean color-coded output or syntax hilighting?

  4. $spacer_open
  5. #4
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Seattle, WA, USA
    I think he means color-coded output. Like instead of "14:foo", it would be:


    As for how to do it, the only thing I could think of would be a C++ program that captures the output and reprints it out with certain colors.

  6. #5
    ya, for programming i use mostly kdevelop which works great and has syntax coloring. I was thinking in terms of output; warning & errors messages during compilation.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts