Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I recently changed my Mac OS X Terminal colors.

How can I enable syntax highlighting for pico? Or any editor in general?

share|improve this question

migrated from apple.stackexchange.com Mar 11 '11 at 1:33

This question came from our site for power users of Apple hardware and software.

    
Not really a Mac question? –  Wuffers Mar 10 '11 at 3:50
    
Not specifically a Mac question, no. –  VxJasonxV Mar 10 '11 at 18:55
    
@VxJasonxV: My last comment was migrated from Apple.SE along with the question. Just to let you know. –  Wuffers Mar 11 '11 at 2:11
    
I know. But good clarification for everyone else. My comment was from apple.se too! –  VxJasonxV Mar 11 '11 at 2:14
add comment

2 Answers 2

pico does not have syntax highlighting. Other text editors each have their own specific methods for enabling syntax highlighting.

share|improve this answer
    
OP may be interested in GNU nano, which is very similar to pico, and supports syntax highlighting. –  ephemient Mar 11 '11 at 2:14
1  
Nah. You just know he wants to jump into emacs face first. –  Ignacio Vazquez-Abrams Mar 11 '11 at 2:15
1  
Insert obligatory: "I'm sorry, I think you mean Vim." –  VxJasonxV Mar 11 '11 at 2:19
    
I'm actually considering re-learning vi or pick up emacs. I'm still looking for reasons to lean towards one. –  Doug Mar 11 '11 at 9:38
    
The OSX terminal has nano. How can I enable syntax highlighting for nano? –  Doug Mar 11 '11 at 9:40
show 1 more comment

Per Pico's Wikipedia Article, Pico did not have Syntax Highlighting, nano does. According to nano's site, it's a compile time option, and then if memory serves it will just work based off extension or file content.

Vim is generally syntax highlighted by default, but may take some special black magic in order to invoke it in case it's not. (set nocompatible, launch via vim instead of vi, syntax on and set syntax=$lang, etc.)

Most X/Visual text editors will automatically syntax highlight.

Any specific ones you're also interested in?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.