
The Database Developer Guide PDF is located in the repo at: apidocs/target/docbkx/webhelp/cdb-devguide-reviewer/cdb-devguide-reviewer.pdf Updated api-doc with Security Groups related API information. Added Security Groups and Security Group Rules as entities and related API calls to the Reddwarf API Docs. Change-Id: I4d559b25413a6138cd7d2fb94c028f8cafde100c
34 lines
1.3 KiB
JavaScript
34 lines
1.3 KiB
JavaScript
SyntaxHighlighter.brushes.Custom = function()
|
|
{
|
|
var operators = '{ } [ ] : ,';
|
|
|
|
|
|
this.regexList = [
|
|
//Make sure the replacement for the callouts does not get highlighted
|
|
{regex: /@@@@([0-9]?[0-9])@([0-9]?[0-9])@@@@/g, css: 'removed'},
|
|
//has a double quote followed by any sequence of characters followed by a double quote followed by colon
|
|
{ regex: /.*\"(.*)\"(\s)*\:/g, css: 'keyword'},
|
|
//opposite the above
|
|
{ regex: /[^(.*\".*\"(\s)*\:)]/g, css: 'comments'},
|
|
|
|
//has a single quote followed by any sequence of characters followed by a single quote followed by colon
|
|
{ regex: /.*\'.*\'(\s)*\:/g, css: 'keyword'},
|
|
//opposite the above
|
|
{ regex: /[^(.*\'.*\'(\s)*\:)]/g, css: 'comments'},
|
|
|
|
//Handle commas
|
|
//a comma followed by 0 or 1 space
|
|
{ regex: /\,(\s)?/g, css: 'string'},
|
|
|
|
//Handle the special characters
|
|
//Any of the braces followed by 1 or 0 space
|
|
{ regex: /(\{|\}|\[|\])(\s)?/g, css: 'plain'},
|
|
//1 or 0 space followed by a } and followed by 1 or 0 space
|
|
{ regex: /(\s)?\}(\s)?/g, css: 'plain'}
|
|
|
|
];
|
|
};
|
|
|
|
SyntaxHighlighter.brushes.Custom.prototype = new SyntaxHighlighter.Highlighter();
|
|
SyntaxHighlighter.brushes.Custom.aliases = ['json', 'JSON'];
|