From Wiki
Revision as of 06:38, 3 August 2012 by Deoren (talk | contribs) (Testing nginx Geshi CSS rules)
Jump to: navigation, search

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* 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
 */ {
    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;

 * Testing syntax rules lifted from

.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; }