! Highlighting Patterns for BibTeX (Thanks to Daniel Blezek, ! blezek.daniel@mayo.edu) ! ! This pattern set is for NEdit 5.1 and beyond. Older versions may ! still be available in: ! ! ftp://ftp.nedit.org/pub/v5_0_2/contrib/highlight_pats/ ! ! Load this file by starting nedit with: ! ! nedit -import ! ! Then, check that the patterns were loaded correctly, and choose Save Defaults ! from the Preferences menu. The new patterns will now be incorporated into ! your own .nedit file, so the next time you start NEdit, you will no longer ! need to use -import. ! ! Changes: ! ! March 10, 2000, Updated for NEdit 5.1 (MWE) ! nedit.languageModes: BibTeX:.bib:::::: nedit.highlightPatterns: \ BibTeX:1:0{\n\ Entry:"@([a-zA-Z0-9]*)":::BibTeX type::\n\ Field:"(.*)[ \\t]=":::BibTeX Field:Contents:\n\ Month:"<(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)>":::String::\n\ Contents:"\\{(.*),":"}"::Plain::\n\ BracketString:"\\{":"}"::String2:Contents:\n\ QuoteString:"""":""""::String:Contents:\n\ SubString:"\\{":"}"::String2:QuoteString:\n\ SubString:"\\{":"}"::String2:BracketString:\n\ Ref:"\\1":""::Text Key:Contents:C\n\ Comment:"%":"$"::Text Comment::D\n\ } nedit.styles: \ BibTeX type:blue:Bold Italic\n\ BibTeX Field:black:Bold