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:
- 756 Bytes
1 | Once you've written your new syntax module, you need to register it with the Syntax library so that it can be found and used by the framework. To do this, just add it to the @Syntax::SYNTAX@ hash: |
2 | |
3 | {{{lang=ruby,number=true,caption=Registering a new syntax |
4 | require 'syntax' |
5 | |
6 | class SimpleTokenizer < Syntax::Tokenizer |
7 | ... |
8 | end |
9 | |
10 | Syntax::SYNTAX['simple'] = SimpleTokenizer |
11 | }}} |
12 | |
13 | That's it! Once you've done that, you can now use your syntax just by requiring the file that defines it, and then using the standard Syntax framework methods: |
14 | |
15 | {{{lang=ruby,number=true,caption=Using your new syntax |
16 | require 'simple-tokenizer' |
17 | require 'syntax/convertor/html' |
18 | |
19 | convertor = Syntax::Convertors::HTML.for_syntax "simple" |
20 | puts convertor.convert( "hello 15 worlds!" ) |
21 | }}} |