Help needed

Discussion in 'Rebol' started by MaxV, Sep 5, 2012.

  1. MaxV

    MaxV Member

    Hello, I'm writing a new version of Rebolide, with color syntax highlighting, using another rebol script (area-tc) with perfect syntax highlighting. I put the new rebolide on github: https://gist.github.com/3635812 , since github works great with Rebol.
    However I'm not good as you and I can't understand how make this new rebolide similar to the old one, see the old one on: http://www.rebol.org/view-script.r?script=rebolide.r
    My main concern at the moment is to create button to insert code in the main area, cut and copy works, but the functions button like the old one no.
    May you help me?
  2. MaxV

    MaxV Member

  3. Graham

    Graham Developer Staff Member

    Does paste work?
    If so there must be a pointer to caret as in view that you can use to insert text.
  4. MaxV

    MaxV Member

    The problem for me is that all the main functions are declared as part of the area (AREA-TC editor), so a button is external and can't use such functions.
  5. Graham

    Graham Developer Staff Member

    Doesn't it have a context you can access?
  6. MaxV

    MaxV Member

    Unfortunately all functions are inside area-tc/feel/engage, so if I try to use area-tc/feel/engage I get:
    ***Script Error: engage is missing its face argument
  7. MaxV

    MaxV Member

    YOU WERE RIGHT!!!!
    My editor confused the end of parenthesis for a ", so functions are not in area/fee/engage, but just area/feel and I can use them!!!!
    Yahoo!!!! :D
  8. Graham

    Graham Developer Staff Member

Share This Page