Permalink
Browse files

Recognize single-line PHP code for highlighting as well

  • Loading branch information...
1 parent 8aff178 commit a21959a41f6e9727ed72ea5306f36ebada1975c2 @bergie bergie committed Mar 25, 2011
Showing with 6 additions and 1 deletion.
  1. +0 −1 static/css/style.css
  2. +6 −0 static/js/highlight.js
View
@@ -164,7 +164,6 @@ article pre{
padding: 15px 20px;
font-size: 12px;
overflow: auto;
- max-height: 150px;
}
article .tagline
{
View
@@ -10,6 +10,12 @@ jQuery(document).ready(function() {
return true;
}
+ if (content.substr(0, 1) === '$' &&
+ content.substr(-1, 1) === ';') {
+ jQuery(this).addClass('sh_php');
+ return true;
+ }
+
if (content.indexOf('tal:') !== -1 ||
content.indexOf('<p>') !== -1 ||
content.indexOf('<li>') !== -1 ||

0 comments on commit a21959a

Please sign in to comment.