Code Highlighter Plugin and Textile?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear Rubies,

Did any of you try to use the beautiful Code Highlighter Plugin by
Sean C. in a post that uses the textile filter? The result I get
is ruby code converted into div’s and span’s, so it is converted to
HTML it seems, but it is rendered as HTML code in plain text. I tried
Markdown which is giving me this strange behavior…

Any clues?

Kind regards,
Robert.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFFTfFE8/wfD/SBQNsRAqtFAJ9Fk3XUDvnet08x+z5SDcI97UswCQCg8IwB
ZBOittsaNfJeEfDzgCZHyLw=
=PJbc
-----END PGP SIGNATURE-----

I had the same problem, I don’t remember if I was able to solve it. I
think
I kept using HTML for the pages that needed code.

I won’t take credit for the code highlighter plugin, although it is
beautiful. Tom de Grunt and John L. can be credited for that. In
most of my pages with <r:code> blocks, yes I’ve had to use plain HTML.
There are a few places where you can get away with using Textile,
especially if your code doesn’t include any angle brackets (< >). I
found indenting things two spaces helps out Textile a lot, but it
doesn’t always solve everything. My biggest problem with it was
especially when I was trying to put Radius code inside an <r:code>
block… doesn’t exactly work. Maybe we’ll get a tag.contents call one
of these days ;).

Sean C.
seancribbs.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs