# Syntax Highlighter and Meta Tags Extensions

**URL:** <https://www.ruby-forum.com/t/syntax-highlighter-and-meta-tags-extensions/105540>\
**Category:** Radiant CMS\
**Created:** [May 30, 2007, 10:27pm UTC](https://www.ruby-forum.com/t/syntax-highlighter-and-meta-tags-extensions/105540 "2007-05-30T22:27:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ol1barn3s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/9de053/32.png) [@ol1barn3s](https://www.ruby-forum.com/u/ol1barn3s)\
**Post date:** [May 30, 2007, 10:27pm UTC](https://www.ruby-forum.com/t/syntax-highlighter-and-meta-tags-extensions/105540/1 "2007-05-30T22:27:29Z")

</div>

I recently posted about a Syntax Highlighter extensions  
([http://lists.radiantcms.org/pipermail/radiant/2007-May/004623.html](http://lists.radiantcms.org/pipermail/radiant/2007-May/004623.html)).  
Now there is a Subversion repository for convenient access:

[https://hytek.org/radiant/svn/extensions/syntax\_highlighter/trunk/](https://hytek.org/radiant/svn/extensions/syntax_highlighter/trunk/)

It is a very simple port of Alexander Jentz’s Code Behavior for Radiant  
0.5. It uses the CodeRay engine. Unfortunately, at the moment it only  
works if CodeRay is installed as a Gem and not as a plugin. If you  
figure out how to run it when CodeRay is installed as a plugin, please  
let me know.

The extension provides a single tag called \<r:code\> which should  
surround the code you want to highlight. Additionally, you probably want  
to generate yourself a CodeRay CSS file using the coderay\_stylesheet  
script that comes with the CodeRay gem.

If you use the \<r:code\> tag inside a Textile part you may need to wrap  
it into a … tag to avoid escaping of the  
generated formatting strings.

Also I have been working on a Meta Tags extension (tags as in Web 2.0)  
for my modified version of Radiant. It is based on the  
acts\_as\_taggable\_on\_steroids plugin modified to not conflict with the  
Radius namespace. It currently does not work with stock Radiant, but it  
is only the initialization code and one view that need to be adjusted.

If anybody wants to port it to stock Radiant, I am happy to help with  
additional info. You can get it from:

[https://hytek.org/shiny/svn/extensions/meta\_tags/trunk/](https://hytek.org/shiny/svn/extensions/meta_tags/trunk/)

Cheers,  
Oliver

---

<div class="post-metadata">

**Author:** ![ol1barn3s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/9de053/32.png) [@ol1barn3s](https://www.ruby-forum.com/u/ol1barn3s)\
**Post date:** [June 2, 2007, 6:09pm UTC](https://www.ruby-forum.com/t/syntax-highlighter-and-meta-tags-extensions/105540/2 "2007-06-02T18:09:13Z")

</div>

Oliver,

Thanks for the contribution – I look forward to using the syntax  
highlighter.

Sean
