Hi,
I'm using XYplorer as my file manager and it has a scripting engine.
I followed the tutorial / explanations (Template for syntax highlighting language wordfile) and tried to make a new wordfile for it from scratch.
Most things are working as expected but I have a few questions / problems.
Variables (beginning with a $ sign) are colored fine, but not if they contain an underscore (the second part (_Cmd) is treated like a string, only the first part is colored correctly):
"Operators" aren't colored at all (ofc I assigned them a color before), e.g. the double equal sign:
"Built-in Variables" aren't colored as well. Is this because in the following example they are treated as a string (because of the double quotes)?
This is my xyplorer.uew so far:
I'm using XYplorer as my file manager and it has a scripting engine.
I followed the tutorial / explanations (Template for syntax highlighting language wordfile) and tried to make a new wordfile for it from scratch.
Most things are working as expected but I have a few questions / problems.
Variables (beginning with a $ sign) are colored fine, but not if they contain an underscore (the second part (_Cmd) is treated like a string, only the first part is colored correctly):
Code: Select all
global $FFmpeg_Cmd;
Code: Select all
end(exists($Token) == 2), "You've selected a folder but only file(s) are allowed, aborted!";
Code: Select all
$InputPath = "<curpath>";
Code: Select all
/L1"XYplorer" EnableMLS Nocase Line Comment = // Line Comment Alt = # Block Comment On = /* Block Comment Off = */ File Extensions = xys
/TGBegin "Functions"
/TGFindStr = "%[ ^t]++^([a-z+]*(*)*;^)"
/TGFindStr = "%*=*^([a-z+]*(*)*;^)"
/TGEnd
/TGBegin "Control Structures"
/TGFindStr = "%*if*(*{"
/TGFindStr = "%*foreach*(*{"
/TGFindStr = "%*while*(*{"
/TGFindStr = "%*else*{"
/TGFindStr = "%*elseif*{"
/TGEnd
/TGBegin "Variables"
/TGFindStr = "%[ ^t]++^(^$[a-z_0-9]+^)[ ^t]++=*;"
/TGEnd
/Colors = 0,32768,32768,0,255,
/Colors Back = 16777215,16777215,16777215,16777215,16777215,
/Colors Auto Back = 1,1,1,1,1,
/Font Style = 0,0,0,0,0,
/Delimiters = ! " $%&'()*+,-./:;<=>?@[\]^_{|}~
/Indent Strings = "{"
/Unindent Strings = "}"
/Open Brace Strings = "{" "(" "["
/Close Brace Strings = "}" ")" "]"
/Open Fold Strings = "{"
/Close Fold Strings = "}"
/C1"Control Structures" STYLE_KEYWORD Colors = 16744448 Colors Back = 16777215 Colors Auto Back = 1 Font Style = 3
;
break
else
elseif
foreach
if
while
/C2"Variables" STYLE_VARIABLE Colors = 33023 Colors Back = 16777215 Colors Auto Back = 1 Font Style = 0
** $
/C3"Operators" STYLE_OPERATOR Colors = 255 Colors Back = 16777215 Colors Auto Back = 1 Font Style = 0
!
%
&
*
+
-
.
/
:
=
?
@
AND
OR
XOR
^
|
~
/C4"Built-in Variables" STYLE_VARIABLE Colors = 16711935 Colors Back = 16777215 Colors Auto Back = 1 Font Style = 0
<base>
<clipboard>
<crlf>
<curbase>
<curext>
<curfolder>
<curitem>
<curitem_dos>
<curitempath>
<curitemprev>
<curlen>
<curname>
<curpath>
<curpath_dos>
<curpath_s>
<cursize>
<curtab>
<curver>
<date>
<focitem>
<items>
<selitems>
<tab>
<title>
<xy>
<xydata>
<xydrive>
<xyexe>
<xyini>
<xypane>
<xypath>
<xyscripts>
<xyver>
%computer%
%desktop%
%net%
%recycler%
%personal%
%desktopreal%
%personalreal%
%winsysdir%
%commonappdata%
%commondesktop%
/C5"Functions" STYLE_FUNCTION Colors = 16711680 Colors Back = 16777215 Colors Auto Back = 1 Font Style = 0
asc
assert
backupto
beep
box
br
button
catalogload
catalogreport
ceil
chr
compare
confirm
continue
copy
copyas
copyitem
copytext
copyto
datediff
delete
download
echo
end
eval
exists
filetype
filter
floor
focus
folderreport
format
formatbytes
formatdate
formatlist
get
getkey
gettoken
global
goto
hash
hexdump
hextodec
highlight
html
incr
input
inputfile
inputfolder
inputselect
isset
isunicode
listfolder
listpane
load
loadsearch
loadtree
makecoffee
md5
moveto
msg
new
now
open
openwith
perm
property
quote
rand
readfile
readpv
readurl
recase
regexreplace
releaseglobals
rename
renameitem
replace
replacelist
report
resolvepath
rotate
round
run
savesettings
sel
selectitems
self
selfilter
seltab
set
setkey
setting
settingp
sortby
sound
status
step
strlen
strpos
strrepeat
sub
substr
swapnames
sync
tab
tag
text
timestamp
toolbar
unset
unstep
urldecode
urlencode
utf8decode
utf8encode
writefile
writepv