[ANN] Syntax 0.5.0

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 jamis_buck@byu.edu.

···

--
Jamis Buck
jamis_buck@byu.edu
http://www.jamisbuck.org/jamis
------------------------------
"I am Victor of Borge. You will be assimil-nine-ed."

Jamis Buck wrote:

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. :slight_smile:

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. :slight_smile:

- Jamis

···

On 06:51 Wed 12 Jan , Florian Gross wrote:

Jamis Buck wrote:

>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. :slight_smile:

--
Jamis Buck
jamis_buck@byu.edu
http://www.jamisbuck.org/jamis
------------------------------
"I am Victor of Borge. You will be assimil-nine-ed."

Jamis Buck wrote:

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. :slight_smile:

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. :slight_smile:

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.

Hi

> 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. :slight_smile:

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

Archit

···

On Wed, 2005-01-12 at 07:21 +0900, Florian Gross wrote:

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.