MediaWiki:Geshi.css

From OpenStreetMap Wiki
Jump to navigation Jump to search

Note: After publishing, 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 / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* <source lang="css"> */

/**
 * This css will override styles used by the GeSHi syntax highlighting, such that less awful colors for the highlighting can be chosen.
 *
 */


/**
 * Mods to apply to all languages.
 */
pre.source { font-weight: normal !important; font-style: normal !important; color: #000 !important; }
pre.source * { font-weight: normal !important; font-style: normal !important; color: #000 !important; }
pre.source .co1 { color: #008000 !important; }
pre.source .co2 { color: #008000 !important; }
pre.source .coMULTI { color: #008000 !important; }
pre.source .nu0 { color: #A00 !important; }
pre.source .st0 { color: #909 !important; }



/**
 * Language code: "vb"
 * 
 * Overrides colors used for keywords from that horrible gold to more tolerable blue. Other colors left as default at present time.
 */
.source-vb .kw1 {color: #006 !important }

/**
 * Language code: "csharp"
 */
pre.source-csharp .co2 { color: #069 !important; }
pre.source-csharp .kw1 { color: #009 !important; }
pre.source-csharp .kw2 { color: #069 !important; }
pre.source-csharp .kw3 { color: #009 !important; }
pre.source-csharp .kw4 { color: #009 !important; }

/**
 * Language code: "java"
 */
pre.source-java .kw1 { color: #009 !important; }
pre.source-java .kw2 { color: #009 !important; }

/**
 * Language code: "pascal"
 */
pre.source-pascal .kw1 { color: #009 !important; font-weight: bold !important; }
pre.source-pascal .kw2 { color: #009 !important; font-weight: bold !important; }
pre.source-pascal .kw3 { color: #009 !important; font-weight: bold !important; }
pre.source-pascal .kw4 { color: #009 !important; font-weight: bold !important; }

/**
 * Language code: "c"
 */
pre.source-c .co2 { color: #069 !important; }
pre.source-c .kw1 { color: #009 !important; }
pre.source-c .kw2 { color: #009 !important; }
pre.source-c .kw3 { color: #009 !important; }
pre.source-c .kw4 { color: #009 !important; }
pre.source-c .co2 { color: #069 !important; } /* preprocessor directive lines */
pre.source-c .st0 { color: #909 !important; }
pre.source-c .st1 { color: #A00 !important; }
pre.source-c .kw1 { color: #009 !important; } /* if, else, while ... */
pre.source-c .kw2 { color: #009 !important; } /* void, int, float, unsigned ... */
pre.source-c .kw3 { color: #009 !important; } /* wchar_t, size_t, bool, complex */
pre.source-c .kw4 { color: #009 !important; } /* struct, union, enum */
pre.source-c .kw5 { color: #009 !important; } /* sizeof, _Pragma */
pre.source-c .kw6 { color: #009 !important; } /* typedef */
pre.source-c .kw7 { color: #069 !important; } /* offsetof */
pre.source-c .kw8 { color: #069 !important; } /* NULL */
pre.source-c .kw9 { color: #069 !important; } /* <stdio.h>: printf, scanf ... */
pre.source-c .kw10 { color: #069 !important; } /* <stdlib.h> */
pre.source-c .kw11 { color: #069 !important; } /* <string.h> */
pre.source-c .kw12 { color: #069 !important; } /* <time.h> */
pre.source-c .kw13 { color: #069 !important; } /* <wchar.h> */
pre.source-c .kw14 { color: #069 !important; } /* <wctype.h> */
pre.source-c .kw15 { color: #069 !important; } /* <ctype.h> */
pre.source-c .kw16 { color: #A00 !important; } /* __LINE__, __STDC__ */
pre.source-c .kw17 { color: #909 !important; } /* __FILE__, __DATE__, __TIME__ */
pre.source-c .kw18 { color: #069 !important; } /* NDEBUG, assert */
pre.source-c .kw19 { color: #069 !important; } /* true, false */
pre.source-c .kw20 { color: #A00 !important; } /* I */
pre.source-c .kw21 { color: #069 !important; } /* <complex.h> */
pre.source-c .kw22 { color: #069 !important; } /* <errno.h> */
pre.source-c .kw23 { color: #069 !important; } /* <fenv.h> */
pre.source-c .kw24 { color: #069 !important; } /* <inttypes.h>: strtoimax, intmax_t ... */
pre.source-c .kw25 { color: #069 !important; font-weight: bold !important; } /* <iso646.h>: xor, and_eq ... */
pre.source-c .kw26 { color: #069 !important; } /* <locale.h> */
pre.source-c .kw27 { color: #069 !important; } /* <math.h> */
pre.source-c .kw28 { color: #069 !important; } /* <setjmp.h> */
pre.source-c .kw29 { color: #069 !important; } /* <signal.h> */
pre.source-c .kw30 { color: #069 !important; } /* <stdarg.h> */

/**
 * Language code: "scheme"
 *
 * Color fix for keywords
 * The class required (source-Scheme/source-scheme) seems to be inconsistent between articles, so both are given here.
 */
pre.source-Scheme .kw1 { color: #009 !important; }
pre.source-scheme .kw1 { color: #009 !important; }


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

/* </source> */