Syntax Highlight editor


 
Thread Tools Search this Thread
Operating Systems Solaris Syntax Highlight editor
# 1  
Old 08-28-2005
Syntax Highlight editor

Is there is any syntax highlithing editor available for C and C++ programming language in Solaris.
# 2  
Old 08-28-2005
Yes, but it really depends on what you want from the editor.
Choices include:
Emacs
Xemacs
vim
gedit (delivered in Solais 9)
jedit (delivered in Solaris 10)
# 3  
Old 08-29-2005
Thanks for your info . I like to use vim for opening C and C++ source code files. Will you please help me how to configure VIM for this.
# 4  
Old 08-29-2005
Thanks for your info . I like to use vim for opening C and C++ source code files. Will you please help me to configure VIM for this.
# 5  
Old 08-29-2005
With the following command in vim

Code:
:syntax on
:set syntax=cpp

Does it work?

Last edited by cbkihong; 08-29-2005 at 06:06 AM..
# 6  
Old 08-29-2005
Thanks for your help .
Let you please tell me from where I can able to get all this kind of info regarding various commands of vim editor.
# 7  
Old 08-29-2005
vim itself has all the help information inside which you can get by

Code:
:help

(unless you have a streamlined version which does not have it)

Or there is a vimbook for an older version of vim by Steve Oualline. For once it was freely downloadable somewhere from the vim site (probably it still is). Otherwise, if your local bookstore still has some copy, grab one.
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

HOW TO HIGHLIGHT FIRST LINE IN FILE?

Hi I have a file as below Merchandise hfdlshaflkdahfdsafhdahfdafhf aldfhdafjadjfsdjfdsjflsjdfjsfjfjs jfahfadhfahdfahfahfahfadhfad Requiremnt: I need to Highlight first line of the file in Bold letters/With Colors and font size change is it possible? (3 Replies)
Discussion started by: buzzme
3 Replies

2. Shell Programming and Scripting

Highlight the string displayed

Hi, Want to highlight the string displayed on the screen. ften="File selected" FB1="\e From the above code, String "File selected" gets highlighted, but the string in the next line does not get highlighted. I tried using FB1& FB2 variables but didn't worked out may be due to too... (1 Reply)
Discussion started by: milink
1 Replies

3. HP-UX

How to highlight syntax in Hp-UX vi editor?

Hi , How do i highlight syntax in vi editor on HP-UX. any suggestion highly appreciated. -Ashok (1 Reply)
Discussion started by: ashokd001
1 Replies

4. Shell Programming and Scripting

set EDITOR=vi -> default editor not setting for cron tab

Hi All, I am running a script , working very fine on cmd prompt. The problem is that when I open do crontab -e even after setting editor to vi by set EDITOR=vi it does not open a vi editor , rather it do as below..... ///////////////////////////////////////////////////// $ set... (6 Replies)
Discussion started by: aarora_98
6 Replies

5. UNIX for Dummies Questions & Answers

Syntax coloring for .pc files in VIM editor

Hi, i am using VIM editor through Putty. By the option of Syntax on in .vimrc file i am able to see syntax colors in .c and .cpp files but not in the files with .pc extension. How can this be done? :confused: (2 Replies)
Discussion started by: RuchK
2 Replies

6. UNIX for Dummies Questions & Answers

vim font highlight

Hi, there. I am using vim to edit some files I am working on from terminal. I occasionally pressed some keys by mistake, and the word just got highlight. Afterward whenever I type in that word, it will be highlight automatically. It is annoying. Could someone tell me how to turn this off? BTW,... (6 Replies)
Discussion started by: HOUSCOUS
6 Replies
Login or Register to Ask a Question