J
Jamis Buck
Syntax is an experimental Ruby library for syntax highlighting source
code. Currently, it supports Ruby, XML, and YAML. Other lexers must be
implemented separately (patches would be appreciated!).
http://rubyforge.org/projects/syntax
The existing lexers in the Syntax library are not very sophisticated.
They simply do some semi-intelligent pattern matching. As a result,
although they will higlight the majority of code correctly, they can
be confused by more complex constructs (like multiple here-documents
on a single line, and so forth).
Syntax is currently in use in the Hieraki project
(http://www.hieraki.org), for syntax highlighting code blocks in
books.
The user manual of the next release of Net::SSH will also have syntax
highlighted code blocks, courtesy of this library.
Future versions of this library may take advantage of existing lexers
(like that existing Simon Strandgaard's Aeditor project) to do more
accurate syntax highlighting.
Comments, criticisms, and flames may be sent to (e-mail address removed).
code. Currently, it supports Ruby, XML, and YAML. Other lexers must be
implemented separately (patches would be appreciated!).
http://rubyforge.org/projects/syntax
The existing lexers in the Syntax library are not very sophisticated.
They simply do some semi-intelligent pattern matching. As a result,
although they will higlight the majority of code correctly, they can
be confused by more complex constructs (like multiple here-documents
on a single line, and so forth).
Syntax is currently in use in the Hieraki project
(http://www.hieraki.org), for syntax highlighting code blocks in
books.
The user manual of the next release of Net::SSH will also have syntax
highlighted code blocks, courtesy of this library.
Future versions of this library may take advantage of existing lexers
(like that existing Simon Strandgaard's Aeditor project) to do more
accurate syntax highlighting.
Comments, criticisms, and flames may be sent to (e-mail address removed).