Wednesday, December 5, 2012

Re: filetype detection within files

I know about &ft.

Talking about

== a .html file ==

<script type="javaoscript">
CURSOR_HERE
</script>

==

Now I want a function which returnns "js" if cursor is in such a
javascript section. That would be useful for both: commenting plugins
and snippet plugins.

Same for any kind of "nested" languages such as php, haml, jsp etc.

Marc Weber

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