ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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).
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.