Wednesday, August 26, 2015

Re: Highlight if-else-endif structures in Vim

On Wed, Aug 26, 2015, Fabian Nick wrote:
> Hi all,
>
> ss there a way to highlight if-else-endif structures in Vim on demand based on their 'level' in the overall program hierarchy? I.e. I want something like
>
> if <<< highlight in red
> foo
> else <<<< red
> if <<< blue
> baz
> bar
> endif <<< blue
> endif <<< red
>
> I'm mostly editing FORTRAN code, but I guess this feature would be pretty generic, as long as the syntax highlighting works for the given language...

That sounds like the various "rainbow parentheses" plugins, except using
if/else/endif instead of parentheses. I wonder if you could adapt one of
those for your use.

--
Eric Christopherson

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment