LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   vim editor no color with .conf,.txt file (https://www.linuxquestions.org/questions/linux-newbie-8/vim-editor-no-color-with-conf-txt-file-610741/)

loplayers 01-03-2008 01:06 AM

vim editor no color with .conf,.txt file
 
environment : centos 5
vim version : 6.3

The vim editor only highlight on in .sh file~
how to enable the syntax highlight in .conf and .txt file???

Nylex 01-03-2008 01:21 AM

This may be a stupid question, but what syntax are you wishing to highlight? There's no generic form of a .conf or .txt file, as many different programs use files with those extensions. It isn't like a C source file, for example, where there are certain key words.

loplayers 01-03-2008 01:23 AM

Quote:

Originally Posted by Nylex (Post 3009387)
This may be a stupid question, but what syntax are you wishing to highlight? There's no generic form of a .conf or .txt file, as many different programs use files with those extensions. It isn't like a C source file, for example, where there are certain key words.

i was writing asterisk script on other server that syntax on every character such as ; {} ()..etc
but i copy those script to other server that the highlight function does not on.


All times are GMT -5. The time now is 05:29 AM.