Tapatalk

Comment Fold Strings - not working

Comment Fold Strings - not working

5
NewbieNewbie
5

    Apr 24, 2007#1

    I'm using 12.10b

    I cannot seem to get Comment Fold Strings working. I've copied and pasted from the syntax.txt file and the help file, but still I cannot get the following to fold:

    #Region
    asdf

    #End Region

    A [-] appears next to the #Region but it refuses to fold.
    I have the following in my wordfile.txt
    /L20"UNIX Shell Scripts" Line Comment = # Escape Char = \ String Chars = "'` File Extensions = sh ksh csh SH KSH CSH
    /Delimiters = ~%^+|\/{}:;"'` , .
    /Function String = "%[a-zA-Z_]*)"
    /Indent Strings = "{" "then" "else" "for" "do" "case" "function"
    /Unindent Strings = "}" "else" "fi" "endif" "done" "esac" "exit" "return"
    /Open Brace Strings = "{" "(" "[" "if" "do" "case"
    /Close Brace Strings = "}" ")" "]" "fi" "done" "esac"
    /Open Fold Strings = "else" "then" "do" "case" "elif"
    /Close Fold Strings = "else" "fi" "done" "esac"
    /Open Comment Fold Strings = "#Region"
    /Close Comment Fold Strings = "#End Region"

    6,685587
    Grand MasterGrand Master
    6,685587

      Apr 25, 2007#2

      Remove the # from both fold strings, specify # as delimiter character and it will work (tested with UE v13.00a).

      By the way: File extensions are on Windows file systems not case sensitive. So sh ksh csh OR SH KSH CSH is enough. UE converts internally the extensions always to upper case.
      Best regards from an UC/UE/UES for Windows user from Austria

      5
      NewbieNewbie
      5

        Apr 25, 2007#3

        Thank you Mofi :)

        So is it a bug in the documentation when it says the following will work:
        /Open Comment Fold Strings = "#Region"
        /Close Comment Fold Strings = "#End Region"
        ?

        6,685587
        Grand MasterGrand Master
        6,685587

          Apr 25, 2007#4

          The documentation does not contain the delimiters and comment specifications for this example. So this example works perfect for example for C/C++ when "#Region" and "#End Region" are ANYWHERE inside a C/C++ line or block comment. # is for C/C++ normally not a delimiter.