views:

630

answers:

1

While I am working in Vim I'd like to have a slight background color change for all code inside the php tags. So for example, the background is solid black for regular XHTML markup, then displays slighly lighter inside the php tags to help me identify it quickly. Is this something I can/should do with the color scheme or is there another method?

+4  A: 

You can do it in the color scheme

example:

hi htmlTag          guifg=#00bdec   guibg=#200000            gui=bold
markuz
Thanks, I'm not too familiar with vim colorschemes. Is there a way to do this with 256 color console mode as opposed to gui? I'm using a 256 color theme (xterm16.vim)
modethirteen
Just use ctermfg / ctermbg / cterm instead of guifg / guibg / gui
rampion
Thank you, this looks much nicer now!
modethirteen