RailsCasts Pro episodes are now free!

Learn more or hide this

Rafael 's Profile

GitHub User: radosch

Site: http://www.beyoumedia.com

Comments by Rafael

Avatar

Hey Ryan,
it's about time! Thnx a lot for this.

I think a comparison off
Knockout, Spine and ember.js would be also very interesting!

There have a much simpler syntax then backbone.js I think AND,
coffee script (spine.js) is fully "supported".

The only thing I ask me all the time, which technology has a future, not all can coexists or for me at least, it doesn't make sense.

What's your opinion on this, have you already checked out other frameworks?

cheers

Avatar

Hi there,
My Term stays white backgrounded, colors change, but not all,
only if I switch the theme in OS X Terminal Settings to another term,
then the theme switches to the text and terminal color of OS X choice.

anyone knows, why colors are not switched properly?

Avatar

Anyone knows why indentation is not correct, or which part is responsible for that, Albino or pygmentize?

it looks like this

ruby
def syntax_highlighter(html)
                doc = Nokogiri::HTML(html)
                  doc.search("//pre[@lang]").each do |pre|
                    pre.replace Albino.colorize(pre.text.rstrip, pre[:lang])
                  end
                doc.css('body').inner_html.to_s
            end

instead of

ruby
def syntax_highlighter(html)
  doc = Nokogiri::HTML::DocumentFragment.parse(html)
  doc.css("pre[@lang]").each do |pre|
    pre.replace Albino.colorize(pre.text.rstrip, pre[:lang])
  end
  doc.to_s
end 

when I put this without parsing it with Nokogiri/Albino/Pyg, then it appears correct (using markdown only)