Slide Show (S9) Gem Now Supports Code Syntax Highlighting and Headers for Gradients, Title, etc

7 views
Skip to first unread message

Gerald Bauer

unread,
Jun 19, 2008, 5:01:25 PM6/19/08
to Ruby Community Announcements
Hello,

I've published an update to Slide Show (S9) - a Ruby gem that lets
you create slide shows and author slides in plain text using a wiki-
style markup language that's easy-to-write and easy-to-read.

What's new?

The Slide Show (S9) gem now supports headers that let you set
options in your source e.g. use

title: Microformats - Adding Semantics to Your Web Site - Web 3.0 in
Action

to set the web page title. Use

gradient-colors: green lime
gradient-colors: #0e1f5b #3b5998
gradient: top-bottom black grey

to set the style and/or colors for your gradient background theme.

Use

code-theme: blackboard
code-line-numbers: false

to select the Ultraviolet syntax highlighting theme and turn off
line numbering. Thanks to zimbatm (*1) for sending in patches for
fixing the slideshow gem executable on Unix and on getting started
with syntax highlighting using the Ultraviolet (*2) gem.

To use/turn on the experimental syntax highlighting in your slide
shows specify the language using #! ruby after the code block e.g.:

{{{
#!ruby
puts "syntaxes:"
puts Uv.syntaxes.join( ", " )

puts "themes:"
puts Uv.themes.join( ", " )

}}}

Find out more about the Slide Show (S9) gem @ http://slideshow.rubyforge.org

Cheers.

(*1) http://oree.ch
(*2) http://ultraviolet.rubyforge.org

--
Gerald Bauer - Internet Professional - http://geraldbauer.wordpress.com

Gerald Bauer

unread,
Jul 3, 2008, 2:32:08 AM7/3/08
to Ruby Community Announcements
Hello,

The Ruby Slide Show (S9) gem that lets you create slide shows and
author slides in plain text using a wiki-style markup language that's
easy-to-write and easy-to-read now includes (experimental) support for
S5 slide shows.

To create a S5 slide show instead of a FullerScreen slide show just
flip the s5 switch. Example:

slideshow -s5 microformats

That's it. The slideshow (S9) gem will create a web page
(microformats.html), a style sheet (microformats.css) and a "loss-
free" gradient theme using vector graphics (microformats.svg) plus
copy the S5 machinery into the s5 subfolder (that you can share
between all your slide shows).

You can find some S9-generated S5 samples online:

o Slide Show (S9) 10-Minute Tutorial @ http://slideshow.rubyforge.org/s5/tutorial.html
o Microformats - Add Semantics to Your Web Site @
http://slideshow.rubyforge.org/s5/microformats.html
o Facebook Stats, Numbers & More @ http://slideshow.rubyforge.org/s5/facebook.html
o Merb - All You Need, None You Don't @ http://slideshow.rubyforge.org/s5/merb.html

(Note, S5 slide shows include a hidden control bar. Scroll to the
lower right corner to make the jump box, outline toggle button and
more show up).

If you're curious you can find the plain-text sources online @
http://slideshow.rubyforge.org/svn/samples

Questions and comments welcome. Enjoy. Cheers.
Reply all
Reply to author
Forward
0 new messages