http://www.perlmonks.org?node_id=952684


in reply to Interactive post-coloring of readline input?

Are you aware of existing work to add syntax highlighting to the perl debugger?

Ovid has put together a prof of concept alpha quality module DB::Color. It is also on GitHub and he has Blogged about it.

It sounds like what you are doing does not closely overlap, as you are trying to syntax highlight the user's command line rather code listings, but I think it would be a good idea if you get in contact with Ovid, and discuss how you can share effort to create a single unified tool. For example you don't want to duplicate effort in writing a parser to identify keywords, and you want the same colour scheme to be used in both places.

  • Comment on Re: Interactive post-coloring of readline input?

Replies are listed 'Best First'.
Re^2: Interactive post-coloring of readline input?
by LanX (Saint) on Feb 09, 2012 at 17:00 UTC
    > but I think it would be a good idea if you get in contact with Ovid, and discuss how you can share effort to create a single unified tool.

    Thanks for the link... I didn't know that one!. :)

    But are you aware how many Perl-REPL and Perl-Shell projects already exist, where almost nobody teams up? (This post thread is one of many)

    Writing propiatory read-eval-loops is almost as popular as propiatory template engines.

    >It sounds like what you are doing does not closely overlap,

    No, not really. Ovid uses a Kate library for highlighting introspections and single steps by manipulating &DB::DB.

    Cheers Rolf

    BTW: When purely debugging (breakpoint, stepping) I use the emacs frontend. So inspected code is already highlighted out of the box in my color scheme. So Ovid's use case doesn't apply to me.