# Code syntax highlighting behaviour

**URL:** <https://www.ruby-forum.com/t/code-syntax-highlighting-behaviour/100159>\
**Category:** Radiant CMS\
**Created:** [July 27, 2006, 1:47pm UTC](https://www.ruby-forum.com/t/code-syntax-highlighting-behaviour/100159 "2006-07-27T13:47:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tdellaringa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7bcc69/32.png) [@tdellaringa](https://www.ruby-forum.com/u/tdellaringa)\
**Post date:** [July 27, 2006, 1:47pm UTC](https://www.ruby-forum.com/t/code-syntax-highlighting-behaviour/100159/1 "2006-07-27T13:47:05Z")

</div>

Hello All,

Maybe handy for other people as well…

I tried looking for a plugin / behavior which would syntax highlight  
ruby code, but could not find it (if it’s there please show me  
where), so I decided to create it myself.

It’s done somewhat similar as on the Radiant Trac website & as seen  
on the 2005 ruby-lang website redesign.

More information can be found here: [http://www.degrunt.net/](http://www.degrunt.net/)

Hope it’s useful …

Regards,  
Tom.

---

<div class="post-metadata">

**Author:** ![tdellaringa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7bcc69/32.png) [@tdellaringa](https://www.ruby-forum.com/u/tdellaringa)\
**Post date:** [July 27, 2006, 2:20pm UTC](https://www.ruby-forum.com/t/code-syntax-highlighting-behaviour/100159/2 "2006-07-27T14:20:29Z")

</div>

I took the liberty to add a reference to your behavior to the third  
party radiant behavior page:  
[http://dev.radiantcms.org:9007/radiant/wiki/ThirdPartyBehaviors](http://dev.radiantcms.org:9007/radiant/wiki/ThirdPartyBehaviors)  
–M

---

<div class="post-metadata">

**Author:** ![tdellaringa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7bcc69/32.png) [@tdellaringa](https://www.ruby-forum.com/u/tdellaringa)\
**Post date:** [July 28, 2006, 12:28am UTC](https://www.ruby-forum.com/t/code-syntax-highlighting-behaviour/100159/3 "2006-07-28T00:28:22Z")

</div>

Tom de Grunt wrote:

> Hope it’s useful …

Very cool Tom. I may include this (or something like it) in a future  
version of Radiant. Thanks for sharing.

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![tdellaringa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7bcc69/32.png) [@tdellaringa](https://www.ruby-forum.com/u/tdellaringa)\
**Post date:** [July 28, 2006, 4:09am UTC](https://www.ruby-forum.com/t/code-syntax-highlighting-behaviour/100159/4 "2006-07-28T04:09:32Z")

</div>

On 27/07/2006, at 8:45 PM, Tom de Grunt wrote:

> Hello All,
> 
> Maybe handy for other people as well…
> 
> I tried looking for a plugin / behavior which would syntax highlight  
> ruby code, but could not find it (if it’s there please show me  
> where), so I decided to create it myself.

That looks quite cool! Have you thought of making it a normal plugin so  
we could use the tag on any page?

Bodhi

---

<div class="post-metadata">

**Author:** ![tdellaringa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7bcc69/32.png) [@tdellaringa](https://www.ruby-forum.com/u/tdellaringa)\
**Post date:** [July 28, 2006, 10:35am UTC](https://www.ruby-forum.com/t/code-syntax-highlighting-behaviour/100159/5 "2006-07-28T10:35:37Z")

</div>

Bodhi,

It’s a plugin which extends Behaviour::Base, which means that the tag  
is available on any page (at least that’s what I understood).

Tom

---

<div class="post-metadata">

**Author:** ![tdellaringa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7bcc69/32.png) [@tdellaringa](https://www.ruby-forum.com/u/tdellaringa)\
**Post date:** [July 28, 2006, 11:37am UTC](https://www.ruby-forum.com/t/code-syntax-highlighting-behaviour/100159/6 "2006-07-28T11:37:11Z")

</div>

On 28/07/2006, at 5:32 PM, Tom de Grunt wrote:

> Bodhi,
> 
> It’s a plugin which extends Behaviour::Base, which means that the tag  
> is available on any page (at least that’s what I understood).

Ah, sorry! That’s what i get for not installing it! Anyway, sounds  
cool, I hope I get a chance/excuse to play with it soon…

Bodhi
