Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 15
- Log:
Attempt to update Typo to a Typo SVN HEAD release from around the
time the prototype installation was set up on the RISC OS Open Limited
web site. Timestamps place this at 04-Jul so a revision from 05-Jul or
earlier was pulled and copied over the 2.6.0 tarball stable code.
- Author:
- adh
- Date:
- Sat Jul 22 23:27:35 +0100 2006
- Size:
- 820 Bytes
1 | Colorizing code has already been touched on briefly in the Introduction chapter (under "Quick Start"). To review, the process is a mere three steps: |
2 | |
3 | # Require the class for the type of the output you want (currently, only HTML is supported). |
4 | # Obtain an instance of the convertor, for the syntax you wish to convert. |
5 | # Call @#convert@ on that convertor, passing in the text you want to convert. The return value is the HTML representation of the colorized text. |
6 | |
7 | For example: |
8 | |
9 | {{{lang=ruby,number=true,caption=Colorizing a Ruby script |
10 | # Step 1: require the HTML convertor |
11 | require 'syntax/convertor/html' |
12 | |
13 | # Step 2: get an instance of the HTML convertor for the Ruby syntax |
14 | convertor = Syntax::Convertor::HTML.for_syntax "ruby" |
15 | |
16 | # Step 3: convert the text to HTML |
17 | puts convertor.convert( File.read( "program.rb" ) ) |
18 | }}} |