Sunday, July 12, 2009

I have a C compiler V2.01. How do i highlight the syntax while i program?

Usually when i type in C language in its editor in other computers, the syntax highlights itselt according to the default colours it has been assigned to distinguish btw things. But in my C compiler everything is in same colour and the programs run and compile. How do i make it highlighted when i create a program? Is their any special command for it in C compiler itself ?

I have a C compiler V2.01. How do i highlight the syntax while i program?
That's not a function of the compiler, but of the editor you're using. Microsoft Visual C/C++ (Visual Studio) has an integrated development environment (IDE) that includes an editor that's smart enough to interpret the syntax and display it in color, but simpler editors aren't and show only black text.





You should be able to find a stand-alone text editor that also does that, possibly even a freebie.





Hope that helps.
Reply:You'll need an editor for that. A compiler just complies - it doesn't do syntax highlighting. Try Eclipse or Vim.





http://www.eclipse.org/


http://www.eandem.co.uk/mrw/vim/syntax/


No comments:

Post a Comment