On a plain Ubuntu installation (12.04 in my case) when I have no ~/.vimrc VIM does not detect syntax of .ssh/config.
Syntax highlighting works, but it does not set the correct filetype.
vi ~/.ssh/config
:set syn?
>syntax=conf
When I do:
set syn=sshconfig
Then the syntax highlighting is as it should be.
Why isn't the filetype automatically identified?
Normally commands such as ls and grep offer nice syntax highlighting for me. But my system crashed (running an ubuntu VM) and after I restarted, I no longer have this highlighting, it's all a dreary grey.
Nano, however, notably does do it's normal highlighting.
Normally commands such as ls and grep offer nice syntax highlighting for me. But my system crashed (running an ubuntu VM) and after I restarted, I no longer have this highlighting, it's all a dreary grey.
Nano, however, notably does do it's normal highlighting.
Can nano do syntax highlighting like gedit and vim? How can I enable it? I need at least bash and python syntax highlights.
I found code in 80836 DOS assembly that I'd like to port to 32-bit Linux assembly, using AT&T syntax.
I found site that explains some differences but only about registers.
When I open vim for a file like /etc/nginx/sites-available/default, syntax highlighting works fine. But then if I create my own file /etc/nginx/sites-available/myapp, vim does not highlight its syntax. I have to do :setf conf every time.
Is there anything I can put in ~/.vimrc to tell vim "if you don't know which syntax to use, just use conf" ?
A .vimrc template for a vim noob is also welcome.
I've been using gedit 2.30.4 to edit my C/C++ source code and want to change the syntax highlighting scheme. Is there a configuration file somewhere that I can modify to change the current settings ( I'd like to change the color of comment blocks , preprocessor commands , etc. ). Thanks for any information.
I need small syntax highlighting plugin for Gedit. Or any other alternative.
I have a problem with Gedit and it's way of highlighting new ruby syntax. In ruby 1.9.x we can write Hash this way:
{ class: 'class_name', id: 'uniq_id' }
insted of
{ :class => 'class_name', :id => 'uniq_id' }
In new syntax, gedit hightlights 'class:' as keyword instead of symbol.
Is there any solution to make Gedit highlight ruby syntax in right way?