Re: vim/php color scheme

From: Date: Thu, 27 Dec 2007 19:27:38 +0000
Subject: Re: vim/php color scheme
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-266309@lists.php.net to get a copy of this message
Daniel, Sweet! Mine is version 7.x but I got it. I will check under vim7x. I post if I have further questions. Thank you On Dec 27, 2007 8:20 PM, Daniel Brown <parasane@gmail.com> wrote: > On Dec 27, 2007 12:02 PM, OOzy Pal <oozypal@gmail.com> wrote: > > How can I edit these .vim files to tweak colors. Where are colors defined? > > [This example assumes your version is 6.3 and it's a default > installation. YMMV. -DPB] > > Color schemes and themes are in: > /usr/share/vim/vim63/colors/ > > Syntax highlighting definition files are in: > /usr/share/vim/vim63/syntax/ > > To edit the PHP syntax highlighting definition file, open: > /usr/share/vim/vim63/syntax/php.vim > > In there, you'll find lines such as this: > syn keyword phpFunctions utf8_decode utf8_encode > xml_error_string xml_get_current_byte_index > xml_get_current_column_number xml_get_current_line_number > xml_get_error_code xml_parse_into_struct xml_parse > xml_parser_create_ns xml_parser_create xml_parser_free > xml_parser_get_option xml_parser_set_option > xml_set_character_data_handler xml_set_default_handler > xml_set_element_handler xml_set_end_namespace_decl_handler > xml_set_external_entity_ref_handler xml_set_notation_decl_handler > xml_set_object xml_set_processing_instruction_handler > xml_set_start_namespace_decl_handler > xml_set_unparsed_entity_decl_handler contained > > Those define how each string (keyword) should be classified. In > the above example, xml_parso_into_struct would be classified as > phpFunctions. Further down, you'll see lines like these: > > HiLink phpStringDouble String > HiLink phpNumber Number > HiLink phpFloat Float > HiLink phpMethods Function > HiLink phpFunctions Function > HiLink phpBaselib Function > > Notice that phpFunctions is an alias to > Function. > > Now check through the files in the themes directory, and you'll > see that (some) have colors and styles defined for Function (some are > re-aliased as Identifier, if memory serves correctly). Take a > few > hints from those files, and you should be able to write your own from > scratch. > > -- > > Daniel P. Brown > [Phone Numbers Go Here!] > [They're Hidden From View!] > > If at first you don't succeed, stick to what you know best so that you > can make enough money to pay someone else to do it for you. > -- OOzy Ubuntu-Gutsy (7.10)

« previous php.general (#266309) next »