Difference between revisions of "MediaWiki:Geshi.css"

From WhyAskWhy.org Wiki
Jump to: navigation, search
m (Testing nginx Geshi CSS rules)
m (Testing whether the syntax highlighting works without explicitly giving the styles (I think they're already embedded in the nginx.php lang file)
Line 36: Line 36:
color: #66cc66;
color: #66cc66;
* Testing syntax rules lifted from http://wiki.nginx.org/HttpCoreModule
.nginx.source-nginx .de1, .nginx.source-nginx .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;}
.nginx.source-nginx  {font-family:monospace;}
.nginx.source-nginx .imp {font-weight: bold; color: red;}
.nginx.source-nginx li, .nginx.source-nginx .li1 {font-weight: normal; vertical-align:top;}
.nginx.source-nginx .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;}
.nginx.source-nginx .li2 {font-weight: bold; vertical-align:top;}
.nginx.source-nginx .kw1 {color: #b1b100;}
.nginx.source-nginx .kw2 {color: #000000; font-weight: bold;}
.nginx.source-nginx .kw3 {color: #000066;}
.nginx.source-nginx .kw4 {color: #993333;}
.nginx.source-nginx .co1 {color: #808080; font-style: italic;}
.nginx.source-nginx .co2 {color: #339933;}
.nginx.source-nginx .coMULTI {color: #808080; font-style: italic;}
.nginx.source-nginx .es0 {color: #000099; font-weight: bold;}
.nginx.source-nginx .br0 {color: #66cc66;}
.nginx.source-nginx .sy0 {color: #66cc66;}
.nginx.source-nginx .st0 {color: #ff0000;}
.nginx.source-nginx .me1 {color: #202020;}
.nginx.source-nginx .me2 {color: #202020;}
.nginx.source-nginx .ln-xtra, .nginx.source-nginx li.ln-xtra, .nginx.source-nginx div.ln-xtra {background-color: #ffc;}
.nginx.source-nginx span.xtra { display:block; }

Latest revision as of 05:42, 3 August 2012

/* CSS placed here will be applied to GeSHi syntax highlighting */

 * Language code: "cpp"
 * Color fix for member variables
.source-cpp .me1 { color:#499; }
.source-cpp .me2 { color:#499; }

 * Trying to merge this rule with the existing one to prevent the font from being so small
.mw-geshi.mw-content-ltr {
    font-size: 1.2em;

/* Geshi's colourscheme for MySQL is absolutely hideous. */
.mysql.source-mysql .kw1,
.mysql.source-mysql .kw2,
.mysql.source-mysql .kw3,
.mysql.source-mysql .kw6,
.mysql.source-mysql .kw10 {
	color: #993333;
.mysql.source-mysql .coMULTI,
.mysql.source-mysql .sy1 {
	color: #808080;
.mysql.source-mysql .br0 {
	color: #66cc66;