Visual Basic fold/unfold does not work properly

Visual Basic fold/unfold does not work properly

2
NewbieNewbie
2

    Oct 20, 2006#1

    Dear Sir/Madam,

    My wordfile.txt is this:

    /L1"Test" Test_LANG File Extensions = x
    /Open Fold Strings = "$if"
    /Close Fold Strings = "$fi"

    /L2"Visual Basic"...

    fold/unfold DOES NOT work with this code:

    Code: Select all

    $if $data_synonym == ""
        $let $d1row = "echo "<TD><INPUT NAME=\"PAR$counter\""
    $fi
    $let $dbstemp = "0"
    $if $db_where_func == "="  $len 1,1
        $let $dbstemp = "1"
    $fi
    fold/unfold DOES work with this code (" before echo deleted):

    Code: Select all

    $if $data_synonym == ""
        $let $d1row = echo "<TD><INPUT NAME=\"PAR$counter\""
    $fi
    $let $dbstemp = "0"
    $if $db_where_func == "="  $len 1,1
        $let $dbstemp = "1"
    $fi
    What I am missing in configuration ?

    6,686585
    Grand MasterGrand Master
    6,686585

      Oct 20, 2006#2

      I'm not a Visual Basic programmer, but I think VB supports multi-line strings and so the UltraEdit syntax highlighting has enabled the multiline string highlighting feature by default for Visual Basic.

      In your first code snippet the line with echo contains 3 unescaped double quotes. So this odd number of double quotes will activate the multi-line string feature and the next 2 lines are part of a string. Fold/unfold strings are ignored inside a string.

      If you don't use multi-line strings and also the echo line in your first code snippet is really a valid VB line which I can't judge, you can insert the keyword DisableMLS at the line starting with /L2"Visual Basic" for example before File Extensions =. Then multi-line string highlighting is disabled and fold/unfold should work also on first code snippet.
      Best regards from an UC/UE/UES for Windows user from Austria

      2
      NewbieNewbie
      2

        Oct 20, 2006#3

        Mofi, Thank You very much !!!

        I added "DisableMLS" to wordfile.txt:

        /L1"Test" Test_LANG DisableMLS File Extensions = x
        /Open Fold Strings = "$if"
        /Close Fold Strings = "$fi"

        Now fold/unfold is working OK.

        This language IS NOT Visual Basic but our proprietary language.

        Greetings from Finland !