LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-20-2004, 09:44 PM   #1
']['HeBroken
Member
 
Registered: Oct 2004
Posts: 35

Rep: Reputation: 15
Adding Color To Source Code?


hey all back again with another quick question for you. I have looked all over the internet on how to emmbed color into a c source code. do anyof you know what the code is? i would greatly appreciate it thank you.
 
Old 10-20-2004, 09:56 PM   #2
Chrax
Member
 
Registered: Apr 2004
Distribution: Dapper
Posts: 167

Rep: Reputation: 31
As in making your code show up in colors in your editor?

That's completely the editor's doing, and has nothing to do with the actual code.
Personally I'm an emacs fan, and that one's color free. Bluefish is a decent editor though, if you go for full-sized, and I expect it's colored in C (I only use it for html).
 
Old 10-20-2004, 10:00 PM   #3
']['HeBroken
Member
 
Registered: Oct 2004
Posts: 35

Original Poster
Rep: Reputation: 15
emmm im using visual studio 2005 beta, and i would like the output in colors . :d
 
Old 10-20-2004, 10:59 PM   #4
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
I don't know what visual studio does. Are you talking about colored code on the screen while your editing? Anjuta or Kdevelop, vim, emacs, etc. will do it.
 
Old 10-20-2004, 11:09 PM   #5
Chrax
Member
 
Registered: Apr 2004
Distribution: Dapper
Posts: 167

Rep: Reputation: 31
http://sources.redhat.com/ml/cygwin/.../msg00120.html

I'd look up the syntax if you want to continue in this line, but if you're running a Windows, it may not work so well, as seen in that article.
 
Old 10-20-2004, 11:29 PM   #6
']['HeBroken
Member
 
Registered: Oct 2004
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Chrax
http://sources.redhat.com/ml/cygwin/.../msg00120.html

I'd look up the syntax if you want to continue in this line, but if you're running a Windows, it may not work so well, as seen in that article.

That was exactly what i was looking for!!!! thanx...
 
Old 10-22-2004, 06:41 PM   #7
Ephracis
Senior Member
 
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Rep: Reputation: 50
Quote:
Originally posted by ']['HeBroken
emmm im using visual studio 2005 beta, and i would like the output in colors . :d :D
The output in the terminal in color can be made with ncurses if that's what you want.

/Mezzymeat
 
Old 10-22-2004, 06:55 PM   #8
Samsara
Member
 
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Rep: Reputation: 32
To permanently colour code, I'd use Term::AnsiColor in Perl; print to screen and pipe the output to a file. If you cat the file, it comes out with colours on.

HTH,

Samsara
 
Old 10-24-2004, 03:06 AM   #9
quentusrex
Member
 
Registered: Aug 2004
Location: Seattle, Washington
Posts: 101

Rep: Reputation: 15
Ok, I use a program that colors the code. It works in Windows. It is called 'pcGRASP' and it is made by Auburn University. It is a little difficult to set up, but once you have all the options set correctly it is AWESOME!!!! I use it for Java, C, C++, and a couple others. I highly advise it. I got my copy through a class I took, but try to google it and you should be able to find a good version.
 
Old 10-24-2004, 03:09 AM   #10
quentusrex
Member
 
Registered: Aug 2004
Location: Seattle, Washington
Posts: 101

Rep: Reputation: 15
http://spider.eng.auburn.edu/user-cg...d_archive.html

That is the website to get pcGRASP. They have developed a more specific one for Java only, but I like the C and C++ support that pcGRASP has.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What are the color code ? cigarstub Linux - Networking 5 10-22-2005 10:51 AM
How to convert Assembly code to "C" source code ssg14j Programming 2 08-01-2005 12:48 PM
Using [code] inside of [color] results in very small text scuzzman LQ Suggestions & Feedback 1 03-28-2005 02:14 AM
Counter-strike,[color=orange]H ë L F - L I F E ²[/color],Counter-strike: Source. Dennisgoop Linux - Games 2 08-10-2004 03:03 AM
PHP code did not create a cookie and it did not changed the background and text color Linh Programming 5 07-29-2004 10:15 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration