![]() |
Terminal highlight code c,c++,java...etc?
How do i get my terminal to highlight code when i'm writing some code, i remember it was already enabled in all the other distributions that i have used, i remember one time i had to edit some file to enable it and i had to get some code to make it highlight what programming language i was using, i can't really remember what file it was so if you can help me, i'd really appreciate it.
thanks. |
Surely you aren't writing code with Bash alone. What text editor are you using to program in?
|
This has nothing at all to do with the terminal.
|
Quote:
i hope you can help me, as i said before i have done this before but i just can't remember. :( |
Quote:
Code:
anisha@linux-dpjj:~> |
As far as I know, only the unstable version of nano supports syntax highlighting. Maybe they released it by now.
|
Emacs running inside the terminal does support syntax highlighting, if that's what you mean.
|
If you look in /usr/doc for nano, you'll find a nanorc example, with the options for syntax highlighting right at the bottom. Copy that to your home directory as .nanorc, and edit it.
|
Quote:
and for those that don't understand what i mean, what i'm trying to do is just like when in a IDE you get the programming language keywords highlighted in other color. that's what am trying to get. anyway, i'll let you know if i get anything done. |
Ever heard of Emacs? It does what you want.
|
Look up this: http://sunsite.ualberta.ca/Documenta...q_5.html#SEC75
|
| All times are GMT -5. The time now is 07:34 AM. |