# Code Highlighter Plugin and Textile?

**URL:** <https://www.ruby-forum.com/t/code-highlighter-plugin-and-textile/74949>\
**Category:** Radiant CMS\
**Created:** [November 7, 2006, 11:03am UTC](https://www.ruby-forum.com/t/code-highlighter-plugin-and-textile/74949 "2006-11-07T11:03:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![le\_colibri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ccd318/32.png) [@le\_colibri](https://www.ruby-forum.com/u/le_colibri)\
**Post date:** [November 7, 2006, 11:03am UTC](https://www.ruby-forum.com/t/code-highlighter-plugin-and-textile/74949/1 "2006-11-07T11:03:42Z")

</div>

-----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-----

---

<div class="post-metadata">

**Author:** ![le\_colibri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ccd318/32.png) [@le\_colibri](https://www.ruby-forum.com/u/le_colibri)\
**Post date:** [November 7, 2006, 11:03am UTC](https://www.ruby-forum.com/t/code-highlighter-plugin-and-textile/74949/2 "2006-11-07T11:03:45Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![le\_colibri](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ccd318/32.png) [@le\_colibri](https://www.ruby-forum.com/u/le_colibri)\
**Post date:** [November 7, 2006, 11:03am UTC](https://www.ruby-forum.com/t/code-highlighter-plugin-and-textile/74949/3 "2006-11-07T11:03:50Z")

</div>

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](http://seancribbs.com)
