Difference between revisions of "MediaWiki:Common.js"

From Suhrid.net Wiki
Jump to navigationJump to search
 
 
(One intermediate revision by the same user not shown)
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 lang="java5"> ",
+
     "tagOpen": "<syntaxhighlight lang=\"java5\">",
 
     "tagClose": "</syntaxhighlight>",
 
     "tagClose": "</syntaxhighlight>",
     "sampleText": "Insert Java code here"}
+
     "sampleText": "Insert Java code here"
 +
    }
 
}
 
}

Latest revision as of 06:26, 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"
     }
}