[ANN] Syntax 0.5.0

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).
 
F

Florian Gross

Jamis said:
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!).

If you can somehow integrate this with IRB you would be one of my
personal superheros. Maybe more. :)
 
J

Jamis Buck

If you can somehow integrate this with IRB you would be one of my
personal superheros. Maybe more. :)

Wow. That would be very, very cool. Are you envisioning this
highlighting the code as you type? I wish I were more familiar with
IRB's innards, because that would be really, really cool. :)

- Jamis
 
F

Florian Gross

Jamis said:
Wow. That would be very, very cool. Are you envisioning this
highlighting the code as you type? I wish I were more familiar with
IRB's innards, because that would be really, really cool. :)

Yup, but I fear this would require some advanced curses trickery to work
properly. I guess highlighting after you have typed a complete line
could work without that, even if it would be slightly less cool.
 
A

Archit Baweja

Hi


That would indeed be vewy vewy cool :D. Besides I need to take a walk
through the *IRB woods* sometime.

Archit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

[ANN] ri_cal 0.5.0 Released 1
[ANN] ffi 0.5.0 0
[ANN] kramdown 0.5.0 released 0
[ANN] Syntax 0.7.0 22
[ANN] heel 0.5.0 Released 4
[ANN] Ruby Reports 0.5.0 0
[ANN] RDT 0.5.0 Released 4
[ANN] Imlib2-Ruby 0.5.0 0

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,898
Members
47,439
Latest member
shasuze

Latest Threads

Top