In my wordfile.txt I have the two following lines
Is there a way to make it so that /return is only picked up when follows a carriage return (it's in the first character position) and / or when it's the first logical character (first character following any number of spaces and / or tabs)
In this case, "Sub" is my Open fold string and "/return" is my close fold string. In the example above, it assumes that the /return in the second line is the close, not the last line. is there a way that I can tell it "<carriage return>/return" or something of the sort. Is there a special character / escape charatcter that represents a <cr> that I can use in my search criteria?
there will also be times where, say the above text was imbedded in an IF statement. the /return (at the bottom of the code shown above) would not be in the first character position but it would be the first logical text on the line (characters not counting spaces and or tabs) following the last carrage return. I'd still like it to catch this.
Same thing would be useful because the language I'm writing in uses the "|" character to declare a comment line if it's at the first character of the line. The "|" character is also used in operators. I would like UE to know that | is the beginning of a comment line ONLY if it's in the first character following a carriage return (and spaces and tabs)
The 3rd and 5th lines are comment lines, the first line shouldn't have any comments
Thanks in Advance!
Code: Select all
/Open Fold Strings = "Sub"
/Close Fold Strings = "/return"
Code: Select all
Sub MySubName
/if (A > B) /return
/if (A < B) {
/echo whatever
/beep
}
/return
there will also be times where, say the above text was imbedded in an IF statement. the /return (at the bottom of the code shown above) would not be in the first character position but it would be the first logical text on the line (characters not counting spaces and or tabs) following the last carrage return. I'd still like it to catch this.
Same thing would be useful because the language I'm writing in uses the "|" character to declare a comment line if it's at the first character of the line. The "|" character is also used in operators. I would like UE to know that | is the beginning of a comment line ONLY if it's in the first character following a carriage return (and spaces and tabs)
Code: Select all
/sub MySubroutine(variable1|variable2|variable3)
Blah Blah
|the line above this calculates the meaning of life
Blah Blah
|the line above should equate to 42
/return
Thanks in Advance!