[Bro] Bro script spacing

Charles A. Fair charles.fair at mac.com
Thu Aug 22 15:55:08 PDT 2013


Courtesy of being pointed out by Chris Crawford: 

http://liamrandall.com/syntax-highlighting-for-bro-network-programming-language/
http://www.appliednsm.com/syntax-highlighting-for-bro-for-nano/

Also:  
https://dl.dropboxusercontent.com/u/4303535/Screencasts/bro-mode.mpg 

Charles "Chuck" A. Fair 
charles.fair at mac.com




On Aug 22, 2013, at 4:18 PM, JP Bourget <jp.bourget at gmail.com> wrote:

> Mathias, 
> 
> Thanks man! This makes sense - I wonder is Seth or someone has a trick to get this work in Sublime Text - I'll try and find one myself and post it if I can. 
> 
> JP
> 
> 
> On Thu, Aug 22, 2013 at 3:24 PM, Matthias Vallentin <vallentin at icir.org> wrote:
> > I hear there is a "style/format" for spacing syntax in bro scripts. Where can I become familiar with this?
> 
> The indentation is called Whitesmiths style [1]. We currently don't
> have an exact guideline, for example like Google's style guide [2].
> Maybe some editors have the ability to explicitly set a style. At
> least in Vim, you can use this:
> 
>      autocmd FileType bro set noexpandtab cino='>1s,f1s,{1s'
> 
> This gives you reasonably close support for brace placement. (It also
> assumes you have a Bro syntax plugin.)
> 
> I'm curious how others have tweaked their editors, not for syntax
> highlighting, but to get an efficient and style-compatible working
> environment.
> 
>      Matthias
> 
> [1] http://en.wikipedia.org/wiki/Indent_style#Whitesmiths_style
> [2] https://code.google.com/p/google-styleguide/
> 
> 
> 
> -- 
> JP
> _______________________________________________
> Bro mailing list
> bro at bro-ids.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/bro

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20130822/2768fdc6/attachment.html 


More information about the Bro mailing list