LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Terminal (https://www.linuxquestions.org/questions/fedora-35/terminal-897219/)

sachithkn 08-14-2011 07:53 AM

Terminal
 
How i can type my c program in terminal with highlighted text.

eSelix 08-14-2011 08:06 AM

You can use vim, pico, nano and probably vi (I never used, so I am not sure), but for small programs I prefer "mcedit" from Midnight Commander.

TobiSGD 08-14-2011 08:08 AM

There are many text-editors for the command line that support syntax highlighting, like vi(m), emacs, nano, joe, ... .
Just try a few and see what fits you best.

MTK358 08-14-2011 10:00 AM

To enable syntax highlighting in Vim, add that to you .vimrc:

Code:

syntax on
Or you can type:

Code:

:syntax on
while using Vim to enable syntax highlighting.

sachithkn 08-15-2011 05:42 AM

thankuuuu, i install vim and its work fine.

sachithkn 08-15-2011 05:45 AM

i install vim and now it works fine thankuuuuuuuu.


All times are GMT -5. The time now is 10:56 AM.