I am interested in putting the cool syntax highlighting for ROR code. What''s the best way to do that? Is it using textilize or another formatting language? Or do I need special stylesheets? Any assistance is appreciated. Thanks Frank --------------------------------- Yahoo! Mail Use Photomail to share photos without annoying attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060213/5fb0a7cd/attachment.html
Hi, The latest version of Typo has built in Ruby Syntax highlighting. Just surround your code with: <typo:code lang="ruby"> def helloworld "Hello World" end </typo:code> Eric softwareengineer 99 wrote:> I am interested in putting the cool syntax highlighting for ROR code. > What''s the best way to do that? Is it using textilize or another > formatting language? Or do I need special stylesheets? > > Any assistance is appreciated. > > Thanks > Frank > > ------------------------------------------------------------------------ > Yahoo! Mail > Use Photomail > <http://us.rd.yahoo.com/mail_us/taglines/pmall2/*http://photomail.mail.yahoo.com> > to share photos without annoying attachments. > ------------------------------------------------------------------------ > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Eric Goodwin http://www.ericgoodwin.com
Yay! Very Nice. Thanks Frank Eric Goodwin <ruby@ericgoodwin.com> wrote: Hi, The latest version of Typo has built in Ruby Syntax highlighting. Just surround your code with: def helloworld "Hello World" end Eric softwareengineer 99 wrote:> I am interested in putting the cool syntax highlighting for ROR code. > What''s the best way to do that? Is it using textilize or another > formatting language? Or do I need special stylesheets? > > Any assistance is appreciated. > > Thanks > Frank > > ------------------------------------------------------------------------ > Yahoo! Mail > Use Photomail > > to share photos without annoying attachments. > ------------------------------------------------------------------------ > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Eric Goodwin http://www.ericgoodwin.com _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails --------------------------------- Relax. Yahoo! Mail virus scanning helps detect nasty viruses! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060213/f1256e4e/attachment-0001.html
Sorry for the (sort of) thread jump but I''ve often wished for syntax highlighting in firefox... have looked for a plugin to do this but haven''t found anything. Has anyone ever heard of such a beast? Maybe with a preferences page and the ability to add new highlight configurations? That''d be sweet. b Eric Goodwin wrote:> Hi, > The latest version of Typo has built in Ruby Syntax highlighting. > Just surround your code with: > > <typo:code lang="ruby"> > def helloworld > "Hello World" > end > </typo:code> > > Eric > > softwareengineer 99 wrote: > >> I am interested in putting the cool syntax highlighting for ROR code. >> What''s the best way to do that? Is it using textilize or another >> formatting language? Or do I need special stylesheets? >> >> Any assistance is appreciated. >> >> Thanks >> Frank >> >> ------------------------------------------------------------------------ >> Yahoo! Mail >> Use Photomail >> <http://us.rd.yahoo.com/mail_us/taglines/pmall2/*http://photomail.mail.yahoo.com> >> to share photos without annoying attachments. >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> > > >
Ezra Zygmuntowicz
2006-Feb-14 15:45 UTC
[Rails] ROR code syntax highlighting on blog? [OT]
Ben- If I understand what you want, you are talking about being able to syntax highlight random code on websites that you are visiting that don''t have syntax highlighting already? If thats the case then you could whip something up using a combination of _why''s hoodwink.d/ camping/and the syntax gem. Hoodwink.d is a sort of local proxy that allows you to rewrite websites you visit with ruby code. Actually sounds like a fun project. Cheers- -Ezra On Feb 13, 2006, at 5:14 PM, Ben Munat wrote:> Sorry for the (sort of) thread jump but I''ve often wished for > syntax highlighting in firefox... have looked for a plugin to do > this but haven''t found anything. Has anyone ever heard of such a > beast? Maybe with a preferences page and the ability to add new > highlight configurations? That''d be sweet. > > b > > Eric Goodwin wrote: >> Hi, >> The latest version of Typo has built in Ruby Syntax highlighting. >> Just surround your code with: >> <typo:code lang="ruby"> >> def helloworld >> "Hello World" >> end >> </typo:code> >> Eric >> softwareengineer 99 wrote: >>> I am interested in putting the cool syntax highlighting for ROR >>> code. What''s the best way to do that? Is it using textilize or >>> another formatting language? Or do I need special stylesheets? >>> >>> Any assistance is appreciated. >>> >>> Thanks >>> Frank >>> >>> -------------------------------------------------------------------- >>> ---- >>> Yahoo! Mail >>> Use Photomail <http://us.rd.yahoo.com/mail_us/taglines/pmall2/ >>> *http://photomail.mail.yahoo.com> to share photos without >>> annoying attachments. >>> -------------------------------------------------------------------- >>> ---- >>> >>> _______________________________________________ >>> Rails mailing list >>> Rails@lists.rubyonrails.org >>> http://lists.rubyonrails.org/mailman/listinfo/rails >>> > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-Ezra Zygmuntowicz WebMaster Yakima Herald-Republic Newspaper ezra@yakima-herald.com 509-577-7732
I have the version 2.6.0 but when I tried the following all I get is the code without the syntax highlightling <typo:code lang="ruby"> def helloworld "Hello World" end </typo:code> Which version has this functionality? I thought 2.6.0 was the latest before the typo.leesoft.com started showing a migration message? Thanks for your assistance. Frank Eric Goodwin <ruby@ericgoodwin.com> wrote: Hi, The latest version of Typo has built in Ruby Syntax highlighting. Just surround your code with: def helloworld "Hello World" end Eric softwareengineer 99 wrote:> I am interested in putting the cool syntax highlighting for ROR code. > What''s the best way to do that? Is it using textilize or another > formatting language? Or do I need special stylesheets? > > Any assistance is appreciated. > > Thanks > Frank > > ------------------------------------------------------------------------ > Yahoo! Mail > Use Photomail > > to share photos without annoying attachments. > ------------------------------------------------------------------------ > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Eric Goodwin http://www.ericgoodwin.com _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails Rails Blog: http://railsruby.blogspot.com MySQL Blog: http://mysqldatabaseadministration.blogspot.com Linux / Security Blog: http://frankmash.blogspot.com --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060303/ec2bf5c5/attachment.html
Hey, Try getting the current build of typo, not the stable one. http://www.typosphere.org/trac/wiki/DownloadCurrent Cheers, Eric Goodwin softwareengineer 99 wrote:> I have the version 2.6.0 but when I tried the following all I get is > the code without the syntax highlightling > > <typo:code lang="ruby"> > def helloworld > "Hello World" > end > </typo:code> > > Which version has this functionality? I thought 2.6.0 was the latest before the typo.leesoft.com started showing a migration message? > > > Thanks for your assistance. > > Frank > > > */Eric Goodwin <ruby@ericgoodwin.com>/* wrote: > > Hi, > The latest version of Typo has built in Ruby Syntax highlighting. > Just surround your code with: > > > def helloworld > "Hello World" > end > > > Eric > > softwareengineer 99 wrote: > > I am interested in putting the cool syntax highlighting for ROR > code. > > What''s the best way to d o that? Is it using textilize or another > > formatting language? Or do I need special stylesheets? > > > > Any assistance is appreciated. > > > > Thanks > > Frank > > > > > ------------------------------------------------------------------------ > > Yahoo! Mail > > Use Photomail > > > > to share photos without annoying attachments. > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > -- > Eric Goodwin > http://www.ericgoodwin.com > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > Rails Blog: http://railsruby.blogspot.com > MySQL Blog: http://mysqldatabaseadministration.blogspot.com > Linux / Security Blog: http://frankmash.blogspot.com > > ------------------------------------------------------------------------ > Yahoo! Mail > Bring photos to life! New PhotoMail > <http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=39174/*http://photomail.mail.yahoo.com> > makes sharing a breeze. > ------------------------------------------------------------------------ > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Eric Goodwin http://www.ericgoodwin.com
softwareengineer 99
2006-Mar-04 00:29 UTC
[Rails] ROR code syntax highlighting on blog? Comments table missing?
Hey Eric, Thanks for the reply. I am now trying to upgrade my typo installation but in the database schema, I don''t see a definition for comments table? So far everythign on my upgraded blog works except when I go to the article page I get the following Showing app/views/articles/_comment_box.rhtml where line #22 raised: undefined method `url'' for #<Comment:0xb6e96114> Extracted source (around line #22): 19: </tr> 20: <tr id="guest_url" style="display:none;"> 21: <td><p><label for="comment_url">Your blog</label></p></td> 22: <td> <%= text_field "comment", "url" %></td> 23: </tr> 24: <tr id="guest_email" style="display:none;"> Any ideas? Why is Typo complaining about no url method? Has the comments table being dropped? Thanks Frank 25: <td><p><label for="comment_email">Your email</label></p></td> Eric Goodwin <ruby@ericgoodwin.com> wrote: Hey, Try getting the current build of typo, not the stable one. http://www.typosphere.org/trac/wiki/DownloadCurrent Cheers, Eric Goodwin softwareengineer 99 wrote:> I have the version 2.6.0 but when I tried the following all I get is > the code without the syntax highlightling > > > def helloworld > "Hello World" > end > > > Which version has this functionality? I thought 2.6.0 was the latest before the typo.leesoft.com started showing a migration message? > > > Thanks for your assistance. > > Frank > > > */Eric Goodwin /* wrote: > > Hi, > The latest version of Typo has built in Ruby Syntax highlighting. > Just surround your code with: > > > def helloworld > "Hello World" > end > > > Eric > > softwareengineer 99 wrote: > > I am interested in putting the cool syntax highlighting for ROR > code. > > What''s the best way to d o that? Is it using textilize or another > > formatting language? Or do I need special stylesheets? > > > > Any assistance is appreciated. > > > > Thanks > > Frank > > > > > ------------------------------------------------------------------------ > > Yahoo! Mail > > Use Photomail > > > > to share photos without annoying attachments. > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > -- > Eric Goodwin > http://www.ericgoodwin.com > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > Rails Blog: http://railsruby.blogspot.com > MySQL Blog: http://mysqldatabaseadministration.blogspot.com > Linux / Security Blog: http://frankmash.blogspot.com > > ------------------------------------------------------------------------ > Yahoo! Mail > Bring photos to life! New PhotoMail > > makes sharing a breeze. > ------------------------------------------------------------------------ > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Eric Goodwin http://www.ericgoodwin.com _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails Rails Blog: http://railsruby.blogspot.com MySQL Blog: http://mysqldatabaseadministration.blogspot.com Linux / Security Blog: http://frankmash.blogspot.com --------------------------------- Yahoo! Mail Use Photomail to share photos without annoying attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060304/e7b2069f/attachment-0001.html
Michael Trier
2006-Mar-04 00:50 UTC
[Rails] ROR code syntax highlighting on blog? Comments table missing?
Are you using the default typo theme or a custom one? The reason I ask is because the themes often have dependencies and if the theme you''re using does not correspond to the same version as your typo source you''ll have issues. Michael
softwareengineer 99
2006-Mar-04 03:15 UTC
[Rails] ROR code syntax highlighting on blog? Comments table missing?
Hey Michael, I am using the default theme that comes with the current release. Interestingly I cannot see the schema for comments table in the code that I checked out. Thanks for your assistance. Frank Michael Trier <mtrier@gmail.com> wrote: Are you using the default typo theme or a custom one? The reason I ask is because the themes often have dependencies and if the theme you''re using does not correspond to the same version as your typo source you''ll have issues. Michael _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails Rails Blog: http://railsruby.blogspot.com MySQL Blog: http://mysqldatabaseadministration.blogspot.com Linux / Security Blog: http://frankmash.blogspot.com --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060304/43ff394e/attachment.html
Michael Trier
2006-Mar-04 03:23 UTC
[Rails] ROR code syntax highlighting on blog? Comments table missing?
There is no comments table. Typo uses STI, as I understand it, to manage articles and comments all in a single table called contents. Maybe that will help. Michael
Hi, and? Did that solve the problem? I have the same problem and don''t want to update based on a hunch ... I changed some of the typo code and would like to use the time to reintegrate doing other, more pressing, things ;-) Cheers, Mariano On 3/4/06, Eric Goodwin <ruby@ericgoodwin.com> wrote:> Hey, > Try getting the current build of typo, not the stable one. > > http://www.typosphere.org/trac/wiki/DownloadCurrent > > Cheers, > Eric Goodwin > > softwareengineer 99 wrote: > > I have the version 2.6.0 but when I tried the following all I get is > > the code without the syntax highlightling > > > > <typo:code lang="ruby"> > > def helloworld > > "Hello World" > > end > > </typo:code> > > > > Which version has this functionality? I thought 2.6.0 was the latest before the typo.leesoft.com started showing a migration message? > > > > > > Thanks for your assistance. > > > > Frank > > > > > > */Eric Goodwin <ruby@ericgoodwin.com>/* wrote: > > > > Hi, > > The latest version of Typo has built in Ruby Syntax highlighting. > > Just surround your code with: > > > > > > def helloworld > > "Hello World" > > end > > > > > > Eric > > > > softwareengineer 99 wrote: > > > I am interested in putting the cool syntax highlighting for ROR > > code. > > > What''s the best way to d o that? Is it using textilize or another > > > formatting language? Or do I need special stylesheets? > > > > > > Any assistance is appreciated. > > > > > > Thanks > > > Frank > > > > > > > > ------------------------------------------------------------------------ > > > Yahoo! Mail > > > Use Photomail > > > > > > to share photos without annoying attachments. > > > > > ------------------------------------------------------------------------ > > > > > > _______________________________________________ > > > Rails mailing list > > > Rails@lists.rubyonrails.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > > -- > > Eric Goodwin > > http://www.ericgoodwin.com > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > > > Rails Blog: http://railsruby.blogspot.com > > MySQL Blog: http://mysqldatabaseadministration.blogspot.com > > Linux / Security Blog: http://frankmash.blogspot.com > > > > ------------------------------------------------------------------------ > > Yahoo! Mail > > Bring photos to life! New PhotoMail > > <http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=39174/*http://photomail.mail.yahoo.com> > > makes sharing a breeze. > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > -- > Eric Goodwin > http://www.ericgoodwin.com > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >