Difference between revisions of "MediaWiki:Common.js"
From Suhrid.net Wiki
Jump to navigationJump to search (Created page with "→Any JavaScript here will be loaded for all users on every page load.: →Added custom button for Java5 Syntax Highlight: if (mwCustomEditButtons) { mwCustomEditB...") |
|||
| Line 7: | Line 7: | ||
"imageFile": "http://suhrid.net/wiki/skins/common/images/button_code.png", | "imageFile": "http://suhrid.net/wiki/skins/common/images/button_code.png", | ||
"speedTip": "Quickly inserts opening and closing tags for java codes that needs to be syntax highlighted", | "speedTip": "Quickly inserts opening and closing tags for java codes that needs to be syntax highlighted", | ||
| − | "tagOpen": "<syntaxhighlight | + | "tagOpen": "<syntaxhighlight> ", |
"tagClose": "</syntaxhighlight>", | "tagClose": "</syntaxhighlight>", | ||
| − | "sampleText": "Insert Java code here"} | + | "sampleText": "Insert Java code here" |
| + | } | ||
} | } | ||
Revision as of 06:23, 7 June 2011
/* Any JavaScript here will be loaded for all users on every page load. */
/* Added custom button for Java5 Syntax Highlight */
if (mwCustomEditButtons) {
mwCustomEditButtons[mwCustomEditButtons.length] = {
"imageFile": "http://suhrid.net/wiki/skins/common/images/button_code.png",
"speedTip": "Quickly inserts opening and closing tags for java codes that needs to be syntax highlighted",
"tagOpen": "<syntaxhighlight> ",
"tagClose": "</syntaxhighlight>",
"sampleText": "Insert Java code here"
}
}