Welcome Guest | Login

typo | syntax highlighting

http://happycoder.rdevelop.net
I am deploying my new blog. This time I chose another blog engline - typo-4.1

What are the ways to add syntax highlight to typo for my code snippets I am going to post in my blog?

I tried this for markdown:
<typo:code lang="ruby">
 class Foo
   def bar
     "abcde"
   end
 end
</ typo:code>

Didn't work.

2007-11-02 10:11 AM

Hi there - this blog post will help you out with that.  You just need to drop filter code files into components/plugins/textfilters and restart your dispatch.fcgi (or Mongrel(s))

2007-11-02 05:27 PM

I couldn't find the code files. Maybe I am blind but I can't find it. Could you give a direct link?

2007-11-04 02:08 PM

No problem.  From that link:

"If you want the filter code, here it is: haskell_controller.rb. Just drop it into components/plugins/textfilters and restart Typo. "

2007-11-04 03:39 PM

But that's for haskell...
Anyway, I fixed it. It was a problem with this space after slash:
</ typo:code>

<typo:code lang="ruby">
 class Foo
   def bar
     "abcde"
   end
 end
</ typo:code>

2007-11-04 04:25 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.