Fork me on GitHub

Sample Posts

This page shows many of the features that blogofile supports on the post level. For each example, the HTML rendering is shown first and secondly the source used to render it.

Test syntax highlighting

March 09, 2009 at 01:09 PM | categories: Test | View Comments

This tests some syntax highlighting:

Some Python:

def test():
    for x in "Hello, Python!":
        print x.upper(),
    print "done"

Some Haskell:

hamming = 1 : map (2*) hamming `merge` map (3*) hamming `merge` map (5*) hamming
     where merge (x:xs) (y:ys) 
            | x < y = x : xs `merge` (y:ys)
            | x > y = y : (x:xs) `merge` ys
            | otherwise = x : xs `merge` ys

Some javascript:

document.write("

This is a header

"); document.write("

This is a paragraph

"); document.write("

This is another paragraph

");

Some plain HTML:

    

This is a test

This is Blogofile.

Source:

---
categories: Test
date: 2009/03/09 13:09:05
format: html
permalink: http://www.blogofile.com/sample_posts.html
tags: ''
title: Test syntax highlighting
---
<p>
This tests some syntax highlighting:
</p>

<p>Some Python:
<pre lang='python'>
def test():
    for x in "Hello, Python!":
        print x.upper(),
    print "done"
</pre>
</p>
<p>
Some Haskell:
<pre lang='haskell'>
hamming = 1 : map (2*) hamming `merge` map (3*) hamming `merge` map (5*) hamming
     where merge (x:xs) (y:ys) 
            | x < y = x : xs `merge` (y:ys)
            | x > y = y : (x:xs) `merge` ys
            | otherwise = x : xs `merge` ys
</pre>
</p>
<p>
Some javascript:
<pre lang='javascript'>
document.write("<h1>This is a header</h1>");
document.write("<p>This is a paragraph</p>");
document.write("<p>This is another paragraph</p>");
</pre>
</p>
<p>
  Some plain HTML:
  <pre lang="html">
    <h1>This is a test</h1>
    This is <a href="http://www.blogofile.com">Blogofile</a>.
  </pre>
</p>

Testing Markdown

March 09, 2009 at 01:09 PM | categories: Test | View Comments

Markdown is cool

It even works in blogofile

This is a list:

  • one
  • two
  • three

This is a quote:

Stop trying to control. Let go of fixed plans and concepts, and the world will govern itself. -- Lao Tsu

Source:

---
categories: Test
date: 2009/03/09 13:09:03
format: markdown
permalink: http://www.blogofile.com/sample_posts.html
title: Testing Markdown
---
### Markdown is cool ###

It even works in [blogofile](http://www.blogofile.com)

This is a list:

* one
* two
* three

This is a quote:

> Stop trying to control.
> Let go of fixed plans and concepts,
> and the world will govern itself.
>  -- Lao Tsu

Testing Textile

March 09, 2009 at 01:09 PM | categories: Test | View Comments

This post is a textile example.

Stop trying to control.
Let go of fixed plans and concepts,
and the world will govern itself.

Header Header Header
Cell 1 Cell 2 Cell 3
Cell 1 Cell 2 Cell 3

Source:

---
categories: Test
date: 2009/03/09 13:09:01
format: textile
permalink: http://www.blogofile.com/sample_posts.html
title: Testing Textile
---

h3. This post is a textile example.

bq. Stop trying to control.
Let go of fixed plans and concepts,
and the world will govern itself.

|_. Header |_. Header |_. Header |
| Cell 1 | Cell 2 | Cell 3 |
| Cell 1 | Cell 2 | Cell 3 |

HTML test

March 09, 2009 at 01:09 PM | categories: Test | View Comments

HTML test

This is just plain HTML

How boring is that?

Source:

---
categories: Test
date: 2009/03/09 13:09:00
format: html
permalink: http://www.blogofile.com/sample_posts.html
tags: ''
title: HTML test
---
<h3>HTML test</h3>
<p>
  This is just <i>plain HTML</i>
</p>
<p>
  How <b>boring</b> is that?
</p>