Skip to content

Instantly share code, notes, and snippets.

@psynaptic
Created May 23, 2013 02:51
Show Gist options
  • Save psynaptic/5632487 to your computer and use it in GitHub Desktop.
Save psynaptic/5632487 to your computer and use it in GitHub Desktop.
/* api.drupal.org syntax highlighting */
pre.php {
background-color: #EDF1F3;
border: 1px solid #ccc;
padding: 3px;
}
pre.php code,
pre.php p {
font-family: "Bitstream Vera Sans Mono", Monaco, "Lucida Console", monospace;
line-height: 1.334;
color: #333;
}
span.php-boundry {
color: #333;
}
pre.php .php-comment {
color: #666;
font-style: normal;
}
pre.php .php-function-or-constant {
color: #00A;
}
pre.php .php-function-or-constant a.local {
color: #027AC6;
font-weight: normal;
text-decoration: none;
}
pre.php .php-function-or-constant a.local:hover {
text-decoration: underline;
}
pre.php a.php-manual {
color: #027AC6;
font-weight: normal;
text-decoration: none;
}
pre.php a.php-manual:hover {
text-decoration: underline;
}
pre.php .php-variable {
color: #00227D;
}
pre.php .php-string {
color: #A00;
}
pre.php .php-constant {
color: #A33;
}
pre.php .php-keyword {
color: #060;
}
/* Soft wrap */
pre.php code {
white-space: pre-wrap; /* CSS3 */
white-space: -moz-pre-wrap; /* Gecko */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* IE 5.5+ */
}
pre {
overflow: visible;
}
/* No wrap */
pre.php code.no-wrap {
white-space: pre;
}
pre.no-wrap {
overflow: auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment