Sample Manifest Lexer project. See the chapter called "Syntax Highlighting" in the book "Rich Client Programming: Plugging into the NetBeans Platform" for details.
This sample uses the Lexer API to tokenize manifest files and colorize the tokens.