I am attempting to create indentation guidelines between brackets (similar to Notepad++). I am working in JavaScript embedded in XML.
It seems the best way to accomplish this is through folding specifically the /Open Fold Strings & /Close Fold Strings elements of syntax highlighting.
To wrap my head around how syntax highlighting works I copied some simple code from another post and modified it but I can't seem to get to fold where I want it to.
At one point it seemed as if something else was interfering so moved all other .uew files (backups and all) into a new folder. (Something to do with how I configured the files to be highlighted, I'll fix it later.)
This worked and now changes that I make directly affect whatever .xml files I have open.
Besides not folding in places I believe it should, block comments fold like there's no tomorrow. I can't see where it's specified that block comment's fold, unless it's by default.
If anyone has an idea as to what I'm doing wrong I'd really appreciate it!
I'm using 64 bit UltraEdit, version 26.10.0.72.
It seems the best way to accomplish this is through folding specifically the /Open Fold Strings & /Close Fold Strings elements of syntax highlighting.
To wrap my head around how syntax highlighting works I copied some simple code from another post and modified it but I can't seem to get to fold where I want it to.
At one point it seemed as if something else was interfering so moved all other .uew files (backups and all) into a new folder. (Something to do with how I configured the files to be highlighted, I'll fix it later.)
This worked and now changes that I make directly affect whatever .xml files I have open.
Besides not folding in places I believe it should, block comments fold like there's no tomorrow. I can't see where it's specified that block comment's fold, unless it's by default.
If anyone has an idea as to what I'm doing wrong I'd really appreciate it!
I'm using 64 bit UltraEdit, version 26.10.0.72.
Code: Select all
/L20"XML" Line Comment = // Block Comment On = /** Block Comment Off = **/ String Chars = '" EnableMLS File Extensions = XML
/Delimiters = ! " %&'()*+,-./:;<=>?@[\]^{|}~
/Function String = "%[^t ]++//[ }]++<<<+ ^(*^) >>>""
/Indent Strings = "{"
/Unindent Strings = "}"
/Open Brace Strings = "{" "(" "[" "<"
/Close Brace Strings = "}" ")" "]" ">"
/Open Fold Strings = "{"
/Close Fold Strings = "}"
/C1"Keywords"
undefined
var
/C2"Operators"
!
$
%
&
*
+
-
// /
:
<
=
>
?
[
]
^
new
|
~
/C3"Separators"
(
)
,
.
;
{
}