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...") |
(No difference)
|
Revision as of 06:18, 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 lang="java5"> ",
"tagClose": "</syntaxhighlight>",
"sampleText": "Insert Java code here"}
}