Following is the default code present in the language.nbs file generated, when you try to add new Language Support.
# code folding
FOLD:Block
# navigator support
NAVIGATOR:WhileStatement: {
display_name: "$ConditionalExpression$";
}
# brace completion
COMPLETE "{:}"
COMPLETE "(:)"
# brace matching
BRACE "{:}"
BRACE "(:)"
# indentation support
INDENT "{:}"
INDENT "(:)"
INDENT "\\s*(((if|while)\\s*\\(|else\\s*|else\\s+if\\s*\\(|for\\s*\\(.*\\))[^{;]*)"
# error highlighting
MARK:ERROR: {
type:"Error";
message:"Syntax error.";
}
MARK:error: {
type:"Error";
message:"Unexpected character.";
}
# code completion
COMPLETION:keyword, operator, identifier, whitespace: {
text1:"while";
text2:"if";
text3:"else";
}
For further reading, refer to http://wiki.netbeans.org/GLFTutorial
NBS language is used to describe programming language, and integrate it to NetBeans.
You can define tokens and grammar of language, and how to present this language in IDE.
One *.nbs file defines one programming language.
For further reading, refer to this
http://wiki.netbeans.org/SchliemannNBSLanguageDescription#section-SchliemannNBSLanguageDescription-TokensDefinition.