Are you talking about the highlighting or the autodection ?

The highlighting will work on either. Just source the bbmenu.vim

But I have yet to find a good way to autodect the file type and hence
higlight it. Any ideas ? I supose I could check the .blackboxrc and see
which menu file it points to and highlight if we are editing that file.
But this is far from ideal, there would be problems with included files.

perhaps we should should decide on an extension for all bbmenu files or
a comment on the first line like in bash. Then autodection can easily be done.


On Tue, Aug 01, 2000 at 08:29:33AM -0400, Gregory J. Barlow ([EMAIL PROTECTED]) wrote:
> On Tue, 1 Aug 2000, Simon Brackenboro wrote:
> 
> > Sorry I forgot on the first mail but I had sent another along with it.
> > Anyway here it is again.
> > 
> > With regards to autodetection what text should I check for ?
> > At the monent I am checking for comment 
> >       
> >       "# This is the default menu file for Blackbox 0.33.0 and up" 
> > 
> > in the first line or
> >                                
> >                                "[begin]" 
> > 
> > in the first 5. What do people call there menu file ? This not a very
> > good way of catching all bbmenu files. For this reason I only include
> > the syntax file.
> 
> So thats not really all that useful, since only the main menu file has a
> [begin], and I have mine split into several files for my sanity.  Though I
> suppose I could add that comment to the top of every menu file I
> have.  Seems there might be a better way to do this.  Thanks though for
> making it available.
> 
> -- 
> Gregory J. Barlow     http://barlow.ncssm.net
> NCSSM 99              [EMAIL PROTECTED]
> NC State              [EMAIL PROTECTED]
> --
> "No one can look back on his school days and say
>  with truth that they were altogether unhappy."
>       - George Orwell
> --
> Mind The Gap

Reply via email to