On Saturday 25 October 2008, Tony Mechelynck wrote:
> On 25/10/08 04:09, Tim Johnson wrote:
> > Hello:
> > Using ver 7.1 on kubuntu 7.10 compiled as the "huge" version with
> > GTK2-GNOME.
> > I'm preparing to do a lot of mixed-syntax coding:
> > I.E. html files with a mixture of html, css and javascript.
> > The default plugin for vim handles this better than emacs,
> > IHMO, but I'm curious of there might be another plugin that
> > could be recommended.
> > Thanks
> > Tim
>
> Vim knows that HTML pages may have embedded javascript and/or CSS (and
> e.g. that Vim scripts may have embedded Scheme, Perl, Python, Ruby
> and/or TCL) and highlights them according to their various syntax
> highlighting scripts (just check ":scriptnames" after editing an HTML
> page and/or a Vim script; you'll see what I mean). I wouldn't bother
> searching for additional scripts, but if you feel that CSS or Javascript
> isn't highlighted the way you like them, you are of course free to
> install other css.vim and/or javascript.vim scripts into ~/.vim/syntax/.
  Sounds like the default will be just fine then. BTW: is there a variable
  that defines what 'mode' I might be in in when the cursor is in a 
  certain area. 
  I.E. - if cursor is in some javascript code in a .html document - is there
  a variable that can tell me programmatically that I am "inside of"   
  javascript, et al for css python etc.
thanks
tim (who tried eclipse/aptana and is going back to the "tried and true")


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to