Created
June 19, 2014 02:43
-
-
Save kawanaka2141/5a9a783d1243cc7825f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Redmine Syntax Hilighter with Google Code Prettify | |
// @namespace https://github.com/kawanaka2141 | |
// @version 0.1 | |
// @match */redmine/issues/* | |
// @match */redmine/projects/*/wiki/* | |
// @resource prettify_css http://google-code-prettify.googlecode.com/svn/trunk/styles/desert.css | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js | |
// @require http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.js | |
// @require http://google-code-prettify.googlecode.com/svn/trunk/src/lang-vb.js | |
// ==/UserScript== | |
(function(){ | |
GM_addStyle(GM_getResourceText("prettify_css")); | |
$("pre").addClass("prettyprint"); | |
$(".prettyprint").css("background-color", "#333"); | |
$(".prettyprint").css("padding", "10px"); | |
prettyPrint(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment