Menu

Space separated words as fold-levels?

2005-07-26
2012-11-13
  • Nobody/Anonymous

    Hi I am trying to make a custom vbs highlighter. I would like to be able to fold IF ... END IF or SUB ... END SUB. How can I add 'end sub' into the closing folder keywords? Currently the 'end' closes but the 'sub' opens a new fold level.

    Thank you very much for looking into this.

     
    • Marten Jan de Ruiter

      For folding freeform fortran, I too would like that keyword may contain spaces, e.g. for "end if", "select case" and "end select". A few suggestions to implement this are quotes, as I used before, an escape character as backslash, or something like , similar to the use of " for quotes in xml files.

      I have seen multiple posts asking for this feature, so there is an interest, and no solution (yet). I would be happy if this feature is implemented.

       
    • Carsten Dreesbach

      I'm having the same issue - I guess there was never a resolution to this?

       
      • bdb4269

        bdb4269 - 2007-05-31

        I could be wrong -- but, as far as I can tell - I think the built in langs, highlight is a more complicated way, than the user defined allows.  -- I finnally just gave up on being able to fold the language I use, and just made a highlight scheme for it. 

        Why do you want to create a custom scheme for VBS?  If you just want to change the text color/formats, for the existing groups, you can goto the "Styler Configurator" under the settings menu, and adjust that.  (you can also add words "word" group.)

        If that's not what you want -- I hate to say it -- but I think the user defined sytax highlighting, just isnt as powerful as the built in stuff. 

        I have suggested that it atleast be made to work with regex's, but don't know if anyone really read it.  :/

         
    • Nobody/Anonymous

      I am having that exact same problem now.  The built in VB language does a much better job than I can, but I can't see where it is defined.  What I can find should not worked based on what I have learned using the user defined language dialog.

      A response would be nice.