so I assume it's valid; but it's always possible I manged something without
realizing it.
http://old.nabble.com/file/p28944690/wp_link_pages.php wp_link_pages.php
I'll give your method a try, but I'm not sure I would know what to do with
the result anyway. :)
Joyce
aleCodd wrote:
>
>
>
> Joyce Tipping wrote:
>>
>> I've been struggling with vim's php highlighting.
>>
>> Today, I decided to tear apart a wordpress function, so I copied and
>> pasted it into a vim screen. But -- yuck! -- the highlighting is
>> terrible. I went and grabbed the latest version of php.vim, but it's no
>> better. I realize I've tweaked my terminal colors, but I don't think
>> that's the problem; it looks just as bad with the default colors.
>>
>> Anyway, I've googled around, and no one is complaining about the php
>> highlighter. And the php code appears to be valid. So I'm wondering if
>> I'm missing something.
>>
>> Here's a picture:
>> http://old.nabble.com/file/p28944617/vim-php.png vim-php.png
>>
>> Thanks a ton to anyone who can help!!
>> Joyce
>>
>
> just upload the file itself, please, it would be much more easier to
> check.
>
> the general solution is to bring the cursor on the 'wrong' syntax and then
> type the command:
> echo synIDattr(synID(line('.'), col('.'), 0), 'name')
> this will give you the syntax item that this word belong to and then you
> can type the command
> hi <whatever-you-get-from -previous-command>
> this will show the highlight group for that syntax item.
>
> by try and error, you'll be certain to find the error either in your code
> or in the syntax file.
>
> cheers
> alex
>
>
--
View this message in context: http://old.nabble.com/Vim-php-highlighting-tp28944617p28944690.html
Sent from the Vim - General mailing list archive at Nabble.com.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment