From: Phil Cooper-king Date: 2010-01-08T22:20:42+09:00 Subject: Re: Stopping String Escaping. > Try this: > require 'rubygems' > require 'uv' > require 'redcloth' > text = DATA.read > text.gsub!(/#>code\((\S+)\)(.+?)#>code/m) do > "" + > Uv.parse($2, 'xhtml', $1, false, 'twilight') + > "" > end > puts RedCloth.new(text).to_html > __END__ > h1. Some code > #>code(ruby) > puts "Hello world!\n" > puts "Hello\\one backslash" > #>code > h1. The end thanks again, it worked like a treat, in 1/2 the lines -- Posted via http://www.ruby-forum.com/.