Permalink
Browse files

Fixed 'pygments' for the Code areas 'highlight'.

Also, changed the way line number separated from code using table.
  • Loading branch information...
1 parent 1725e6c commit 88969743dd7ec6d63f3009f921a0cb3c643ba215 @detro committed Dec 22, 2010
Showing with 27 additions and 5 deletions.
  1. +1 −1 config.py
  2. +1 −1 lib/markdown_processor.py
  3. +25 −3 themes/squared/css/base.css
View
@@ -133,7 +133,7 @@
# one of 'manni', 'perldoc', 'borland', 'colorful', 'default', 'murphy',
# 'vs', 'trac', 'tango', 'fruity', 'autumn', 'bw', 'emacs', 'pastie',
# 'friendly', 'native'.
-highlighting_style = 'friendly'
+highlighting_style = 'emacs'
# Absolute url of the blog application use '/blog' for host/blog/
# and '' for host/.Also remember to change app.yaml accordingly
@@ -53,7 +53,7 @@ class CodeBlockPreprocessor(TextPreprocessor):
pattern = re.compile(
r'\s*\[sourcecode:(.+?)\](.+?)\[/sourcecode\]\s*', re.S)
- formatter = HtmlFormatter(noclasses=INLINESTYLES, lineseparator=LINEENDING, linenos='inline')
+ formatter = HtmlFormatter(noclasses=INLINESTYLES, lineseparator=LINEENDING, linenos='table')
def run(self, lines):
def repl(m):
@@ -36,7 +36,7 @@ p:first-child {
margin-top: 0;
}
-div.img img, blockquote, div.highlight {
+div.img img, blockquote {
background: #eee;
background: linear-gradient(top, #ddd, #eee);
background: -moz-linear-gradient(top, #ddd 0%, #eee 100%);
@@ -74,9 +74,31 @@ blockquote {
margin: 10px 0;
}
-div.highlight {
- font-size: 13px;
+div.linenodiv pre, div.highlight pre {
+ font-size: 11px;
margin: 10px 0;
+ white-space: pre;
+ font-family: 'Monaco', 'Courier New', 'Courier', monospace;
+}
+
+div.highlight pre {
+ background-color: #fafafa;
+
+ border-top: 1px solid #fff;
+ border-left: 1px solid #ddd;
+ border-right: 1px solid #ddd;
+ border-bottom: 1px solid #ddd;
+
+ border-radius: 10px;
+ -moz-border-radius: 10px;
+ -webkit-border-radius: 10px;
+
+ box-shadow: 0 0 5px #ddd;
+ -o-box-shadow: 0 0 5px #ddd;
+ -webkit-box-shadow: 0 0px 5px #ddd;
+ -moz-box-shadow: 0 0 5px #ddd;
+
+ text-shadow: 0 1px 0 #fff;
}
a, a:link, a:visited {

0 comments on commit 8896974

Please sign in to comment.