Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.