WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I downloaded the WP-syntax plugin and want to customize it to show a black terminal-style background.

I edited the file wp-syntax/wp-syntax.css to

.wp_syntax {
  color: #100;
  background-color: black !important;
  border: 1px solid silver;
  margin: 0 0 1.5em 0;
  overflow: auto;

/* IE FIX */
.wp_syntax {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: expression(this.scrollWidth > this.offsetWidth ? 15 : 0);
  width: 100%;

.wp_syntax table {
  border-collapse: collapse;

.wp_syntax div, .wp_syntax td {
  vertical-align: top;
  padding: 2px 4px;

.wp_syntax .line_numbers {
  text-align: right;
  background-color: black !important;
  color: white !important;
  overflow: visible;

/* potential overrides for other styles */
.wp_syntax pre {
  margin: 0;
  width: auto;
  float: none;
  clear: none;
  overflow: visible;
  font-size: 12px;
  line-height: 1.333;
  white-space: pre;
  background-color: black !important;


However, I am getting a result like

enter image description here

Most of the text is barely visible. What modifications should I make to the code in order to get something like this:

enter image description here

share|improve this question
up vote 1 down vote accepted

Plugin documentation instructs to copy style file to theme's directory, rather than edit it in place (which would make it incompatbile with updates and such).

Other than that this seems like CSS issue and has little to do with WordPress. Some time with Firebug+Firefox or other debug tool usually solves such.

share|improve this answer
Thanks for the tip. – yayu Sep 12 '11 at 22:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.