Sha256: aa427bff8b9d951c4c686e5b2ba19c9c74d3a0217354b08b614d2efd8f3a8fcb

Contents?: true

Size: 1.39 KB

Versions: 9

Compression:

Stored size: 1.39 KB

Contents

[15.06.2009]

  Compare: http://freelancing-god.github.com/ts/en/
  Description of thinking-sphinx gem.

[13.10.2009]

Currently, almost everything what I write is rendered by Ruby on Rails
and Sinatra applications. To improve the readability of the text, I
want the code fragments to be colored. So extending Rails and Sinatra
frameworks with syntax highlighting is a must.

The problem is to how syntax highlighting features are hooked into
these frameworks.

Look at the current practice. To this end, analyze the top three tools
listed on *The Ruby Toolbox* in category 
[Syntax Highlighting](http://ruby-toolbox.com/categories/syntax_highlighting.html).

[tm_syntax_highlighting](http://github.com/arya/tm_syntax_highlighting/) (plugin):

    code(some_ruby_code, :theme => "twilight", :lang => "ruby", :line_numbers => true)

[harsh](http://carboni.ca/projects/harsh/) (plugin):

    <% harsh :theme => :dawn do %>    |    <% harsh %Q{ some_ruby_code }, :theme => :dawn %>
      some_ruby_code                  |
    <% end %>                         |

[Redcloth with CodeRay](http://github.com/augustl/redcloth-with-coderay) (gem):

    <source:ruby> some_ruby_code </source> 

In each piece of code inserted into html we must change:
`<` to `&lt;`. This is annoying thing.

Analyze packages mentioned at the *The Ruby Toolbox* page:
[Syntax Highlighting](http://ruby-toolbox.com/categories/syntax_highlighting.html)

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
rack-codehighlighter-0.4.7 TODO
rack-codehighlighter-0.4.6 TODO
rack-codehighlighter-0.4.5 TODO
rack-codehighlighter-0.4.4 TODO
hyperbolist-rack-codehighlighter-0.4.4 TODO
hyperbolist-rack-codehighlighter-0.4.3 TODO
hyperbolist-rack-codehighlighter-0.4.2 TODO
rack-codehighlighter-0.4.1 TODO
rack-codehighlighter-0.4.0 TODO