John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:

Is there a good source editor with highlighting available for Perl 6? Most of them try to parse as Perl 5 and make a mess of it. I normally use Source Insight, and the list of objects, functions, variables, etc. across files is more important that color-coding things, but putting function headers in large font and so on is very nice too and I'm missing that.

—John

  • Comment on Source editor w/highlighting for Perl 6 ?

Replies are listed 'Best First'.
Re: Source editor w/highlighting for Perl 6 ?
by moritz (Cardinal) on Feb 27, 2008 at 08:15 UTC
    There are syntax hilighting files for Vim and Emacs in util/ in the pugs repository.

    For other editors you have to try to create your own syntax files, but it's not an easy task. Nothing but perl can parse Perl, and it's not that different for Perl 6.

      <sigh>. I wish Source Insight had an open interface for supporting more languages. It has some user-defined language ability, but based on simple regex, and using a broken and limited regex engine.

      I was hoping there was something for the Scintilla editing engine.

      —John
      in Allen, Texas (Dallas metroplex)

        You might want to have a look at nedit. It has reasonably powerful syntax highlighting based on what seem to be Perl regexen. IIRC, features like look-arounds are supported. I've not tried to set up highlighting for a new language but I would have thought it was possible.

        Cheers,

        JohnGG

Re: Source editor w/highlighting for Perl 6 ?
by marcussen (Pilgrim) on Feb 27, 2008 at 11:06 UTC
    I have no idea if it currently supports perl6 syntax, but with an active community and open source interfaces it should be possible to have perl6 syntax support for activestate komodo edit/ide rather quickly if it does not already support it.

    while ( whoring ){ for ( xp ){ grep /the source/,@perlmonks; }}
      It looks like Komodo is also based on Scintilla.
Re: Source editor w/highlighting for Perl 6 ?
by Bloodrage (Monk) on Feb 27, 2008 at 20:37 UTC

    You could hack up the wordfile for UltraEdit, and make it available here, or submit it back to IDM. They already have a wordfile for Parrot.

    Like Source Insight, UltraEdit isn't free, but it's an addictivly good Windows editor, and it's very customisable.


    I wish I could stop pimping UltraEdit, but it's like discovering World of Warcraft after being forced to play D&D online.
      I like editplus for windoze, I'm not sure how Perl 6 would behave with it, but try it... it's free... http://www.editplus.com